Skip to content

Instantly share code, notes, and snippets.

@get-data-
Last active December 6, 2019 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save get-data-/2d7e8aca3d8a6c18750eabe0610f275a to your computer and use it in GitHub Desktop.
Save get-data-/2d7e8aca3d8a6c18750eabe0610f275a to your computer and use it in GitHub Desktop.
IAM permissions for SQS and Lambda with cron Event
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