-
Create an empty Lambda instance, and give it a role that can write to the correct S3 bucket
-
Run
make cattenbak.zip
and upload it to the Lambda function, this can also be done withmake deploy
-
Go to Configuration -> General configuration -> Edit
-
Set the timeout to at least 10 seconds
-
Add a trigger, EventBridge (CloudWatch Events)
-
Set the trigger to
rate(1 hour)
-
Go to Configuration -> Environment variables -> Edit
-
Set the following variables (remove
-staging
when going for production)
Key | Value |
---|---|
s3_bucket | geteduroam-disco |
s3_read_path | v1/discovery.json |
s3_write_path | v1-staging/discovery.json |