-
-
Save richardgrantserverless/40701e17742854c5d50b7ced9328ccde 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
# serverless.yml | |
service: cloudtrail-dynamodb | |
provider: | |
name: aws | |
runtime: python3.6 | |
stage: dev | |
region: us-east-1 | |
environment: | |
SLACK_URL: 'INSERT SLACK URL' | |
functions: | |
createTable: | |
handler: handler.create_table | |
events: | |
- cloudwatchEvent: | |
event: | |
source: | |
- "aws.dynamodb" | |
detail-type: | |
- "AWS API Call via CloudTrail" | |
detail: | |
eventName: | |
- "CreateTable" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment