Created
May 28, 2019 11:49
-
-
Save bahrmichael/304442d63324fe5865a07b54238c1160 to your computer and use it in GitHub Desktop.
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
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