You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 12, 2024. It is now read-only.
If boto3 is setup to access AWS, then you can run scripts/ec2.py from your local machine to test (although it'll try to pull large amounts of data into & out of S3, so this will get expensive quickly!)
The following environment variables must be provided:
Name
Type
Description
SQS_URL
String
The URL of the SQS that the Messages are consumed from
DEST_BUCKET
String
S3 bucket that the finished output should be stored in
Manual Setup
Configure AWS permissions
Go to the AWS Identity and Access Management (IAM) console... TODO
Create bucket for storing NWPs
Create a bucket for storing subsetted NWPs. Set the DEST_BUCKET constant in scripts/ec2.py
Configure AWS Simple Queue Service (SQS)
When the Met Office uploads new NWPs to S3, they also send a message to an AWS Simple Notification Service topic. These notifications must be received as soon as they're produced. But our EC2 job isn't kept running 24/7. Our EC2 job is triggered once an hour. So we need a way to capture the SNS notifications when our EC2 job is offline.
A solution is to set up an AWS Simple Queue Service. Set up SQS as per the Met Office's instructions.