Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GetDataFunction:
Type: 'AWS::Serverless::Function'
Properties:
Handler: index-get.handler
CodeUri: src/
Runtime: nodejs12.x
AutoPublishAlias: live
DeploymentPreference:
Type: CodeDeployDefault.LambdaCanary10Percent5Minutes
Hooks:
PreTraffic:
Ref: PreTraffic
PostTraffic:
Ref: PostTraffic
TriggerConfigurations:
- TriggerEvents:
- DeploymentSuccess
- DeploymentFailure
TriggerName: TestTrigger
TriggerTargetArn:
Ref: mySNSTopic
MemorySize: 128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.