[x] Reports must now be scheduled using a dedicated endpoint POST /api/schedules.
[x] The endpoint to schedule reports now invokes a dedicated Lambda function. This simplifies code, and makes it possible to give each Lambda more restrictive IAM permissions.
[x] The endpoint to schedule reports now enforces IAM authentications — this means that reports can only be scheduled with valid AWS IAM credentials of a user/role that has been granted execute-api:Invoke on the deployed API.
[x] A new script bin/a11ygator is now available to make scheduling reports a piece of cake.
This MR gives scheduled reports a boost:
POST /api/schedules
.execute-api:Invoke
on the deployed API.bin/a11ygator
is now available to make scheduling reports a piece of cake.