UNPKG

serverless-plugin-canary-deployments

Version:

A Serverless plugin to implement canary deployment of Lambda functions

46 lines (45 loc) 953 B
{ "service": "canary-deployments-test-really-stupid-long-stack-name-which-will-test-character-limit", "custom": { "deploymentSettings": { "stages": ["dev"] } }, "functions": { "hello": { "handler": "handler.hello", "events": [ { "http": "GET hello" }, { "stream": { "type": "dynamodb", "arn": { "Fn::GetAtt": ["StreamsTestTable", "StreamArn"] } } }, { "sns": "snsTopic" }, { "s3": "s3SampleBucket" } ], "deploymentSettings": { "type": "Linear10PercentEvery1Minute", "alias": "Live", "preTrafficHook": "preHook", "postTrafficHook": "postHook", "alarms": ["HelloFooAlarm"] } }, "preHook": { "handler": "hooks.pre" }, "postHook": { "handler": "hooks.post" } } }