serverless-gradual-traffic-shifting
Version:
A Serverless plugin to implement gradual deployment of Lambda functions
45 lines (44 loc) • 777 B
JSON
{
"service": "gradual-deployments-test",
"custom": {
"deploymentSettings": {
"stages": [
"prod"
]
}
},
"functions": {
"hello": {
"handler": "handler.hello",
"events": [
{
"http": "GET hello"
},
{
"stream": {
"type": "dynamodb",
"arn": {
"Fn::GetAtt": [
"StreamsTestTable",
"StreamArn"
]
}
}
},
{
"sns": "snsTopic"
},
{
"s3": "s3SampleBucket"
}
],
"deploymentSettings": {
"alias": "Live",
"versionWeight": 0.02,
"alarms": [
"HelloFooAlarm"
]
}
}
}
}