Skip to content

Instantly share code, notes, and snippets.

@singledigit
Created September 25, 2019 14:25
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 singledigit/6aed8b96d6ade7d85bc7da0ec565f8fb to your computer and use it in GitHub Desktop.
Save singledigit/6aed8b96d6ade7d85bc7da0ec565f8fb to your computer and use it in GitHub Desktop.
Using EventBridge rules as events in AWS SAM
TranslateFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: translate/
Timeout: 10
Handler: app.lambdaHandler
Runtime: nodejs10.x
Events:
TranslateEvent:
Type: CloudWatchEvent
Properties:
Pattern:
source:
- "DBStream"
detail-type:
- "translation"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment