This is a serverless project to provide the processing of data files for LFW from FWFI
Pulls in the forcast telemetry data from the S3 bucket and processes it into the database
Lambda that checks for the latest flood guidence statement and if it is newer than the last processed one it will download the file and put it in our S3 bucket
Gets all warnings and alerts from the FWIS api and puts them in the database
This Lambda will check every station in the database agaist the IMTD api and update the database with the latest thresholds for each station. Calling its self after each station in order to minimise the time the lambda runs for. This is run every two weeks and the different envs have to run on different days as the IMTD api cant handle the load of all the stations at once from multiple envs.
brings in the observed telemtery data from the S3 bucket and processes it into the database
refreshes the materialized views and clears out the old telemetry.
Uses the exports context file from sharepoint to update the stations in the database.
There is a global dependency on serverless which is used for configuration and deployments to AWS
npm i -g serverless
npm install
npm run deploy
npm run pre-deployment-test
npm run post-deployment-test