aws-samples / aws-cdk-examples

Example projects using the AWS CDK
Apache License 2.0
5.04k stars 2.12k forks source link

Lambda gradual deploy example, with automated roll back #309

Open dave-graham opened 4 years ago

dave-graham commented 4 years ago

:rocket: Feature Request

Description

Is there any chance you could create a lambda based example of gradual deploys with automated roll back if there are issues?

Proposed Solution

The key functionality is available in https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html but I would love to be able to use CDK instead. It allows canary deploys and an automated roll back if error levels trigger a cloudwatch alert.

nija-at commented 4 years ago

As far as I know, this doesn't exist in the CDK and will have to be built as a brand new construct.

It's also not clear if this is something we would add here as part of the CDK. The AWS solutions team has started building up a library of useful patterns like this - https://github.com/awslabs/aws-solutions-constructs.

It may be worth opening an issue in their repo. Leaving this open for now.