Skip to content

API Gateway and Lambda with weighted routing to the latest function deployed

Notifications You must be signed in to change notification settings

ryands17/lambda-canary-deployments

Repository files navigation

Lambda Canary Deployments

An example project using API Gateway and Lambda with weighted routing to the latest function deployed. This will send a small portion of traffic to the new version and rollback if errors occur using CloudWatch Alarms.

Blog Post: https://dev.to/ryands17/canary-deployment-of-lambdas-using-cdk-pipelines-1l0b

The cdk.json file tells the CDK Toolkit how to execute your app.

Useful commands

  • yarn build compile typescript to js
  • yarn watch watch for changes and compile
  • yarn test perform the jest unit tests
  • yarn cdk deploy deploy this stack to your default AWS account/region
  • yarn cdk diff compare deployed stack with current state
  • yarn cdk synth emits the synthesized CloudFormation template

About

API Gateway and Lambda with weighted routing to the latest function deployed

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published