Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MyFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.8
CodeUri: ./src/my_function
Handler: index.lambda_handler
Events:
TableChanges:
Type: EventBridgeRule
Properties:
EventBusName: !Ref EventBus
InputPath: $.detail
Pattern:
source:
- my-service.database
resources:
- !GetAtt MyTable.Arn
detail-type:
- INSERT
- MODIFY
detail:
dynamodb:
Keys:
pk:
S: [{ "prefix": "OID#" }]
sk:
S: [{ "prefix": "UID#" }]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment