Skip to content

Instantly share code, notes, and snippets.

@bahrmichael
Created May 28, 2019 11:49
Show Gist options
  • Save bahrmichael/304442d63324fe5865a07b54238c1160 to your computer and use it in GitHub Desktop.
Save bahrmichael/304442d63324fe5865a07b54238c1160 to your computer and use it in GitHub Desktop.
service: lambda-scheduler
provider:
name: aws
runtime: python3.7
iamRoleStatements:
- Effect: Allow
Action:
# Please limit the Actions to read and write if you use this in production
- dynamodb:*
# Limit this to your lambda-scheduling table
Resource: "arn:aws:dynamodb:us-east-1:*:*"
functions:
schedule:
handler: scheduler.handle
execute:
handler: executor.handle
events:
# Use your lambda-scheduling stream
- stream: arn:aws:dynamodb:us-east-1:256608350746:table/lambda-scheduling/stream/2019-05-27T15:48:18.587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment