Skip to content

Instantly share code, notes, and snippets.

@PaulDuvall
Last active June 26, 2020 16:31
Show Gist options
  • Save PaulDuvall/9d86b571c259492c6aedd2894f06b441 to your computer and use it in GitHub Desktop.
Save PaulDuvall/9d86b571c259492c6aedd2894f06b441 to your computer and use it in GitHub Desktop.
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