Last active
December 6, 2019 16:07
-
-
Save get-data-/2d7e8aca3d8a6c18750eabe0610f275a to your computer and use it in GitHub Desktop.
IAM permissions for SQS and Lambda with cron Event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iamRoleStatements: | |
- Effect: Allow | |
Action: | |
- lambda:InvokeFunction | |
Resource: "*" | |
- Effect: "Allow" | |
Action: | |
- "sqs:SendMessage" | |
- "sqs:GetQueueUrl" | |
Resource: "*" | |
- Effect: "Allow" | |
Action: | |
- "sqs:ListQueues" | |
Resource: "*" | |
functions: | |
dlqRetry: | |
handler: handler.main | |
description: Look into SQS queue and retry failed s3 PUT events | |
events: | |
- schedule: | |
name: retry-timing | |
description: 'Weekdays hourly between 0100 and 0500 Eastern' | |
rate: cron(0 6-11 * * 1-5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment