Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created May 26, 2022 14:40
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 richardgrantserverless/40701e17742854c5d50b7ced9328ccde to your computer and use it in GitHub Desktop.
Save richardgrantserverless/40701e17742854c5d50b7ced9328ccde to your computer and use it in GitHub Desktop.
# 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