deployment-aws-canary-setup

Configure AWS Lambda canary deployments with CDK alarms and CodeDeploy rollback.

Updated Oct 27, 2025
One-click install
npx skills add https://github.com/mariotoffia/gobridge --skill deployment-aws-canary-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deployment-aws-canary-setup
Source: https://github.com/mariotoffia/gobridge/tree/main/.cursor/skills/deployment-aws-canary-setup
Command: npx skills add https://github.com/mariotoffia/gobridge --skill deployment-aws-canary-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a practical blueprint for safely deploying AWS Lambda functions using progressive canary deployments with CDK, CloudWatch alarms, and CodeDeploy, reducing risk during releases.

Core Features & Use Cases

  • Canary and linear deployment strategies for Lambda functions to manage traffic during upgrades.
  • Automated rollback via CloudWatch alarms and CodeDeploy deployment groups to preserve service availability.
  • End-to-end CDK stack including versioned Lambda, alias management, deployment alarms, and a canary deployment group for production-grade workflows.
  • Use case: when releasing a new Lambda version, you can gradually shift traffic and automatically rollback on detected issues.

Quick Start

Create a CDK app that provisions a Versioned Lambda, a live alias, deployment alarms, and a CanaryDeployment; then trigger a canary deployment to a test stage and monitor CloudWatch metrics to verify safe rollout.

Frequently Asked Questions about deployment-aws-canary-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up canary deployments for AWS Lambda using CDK?

Canary deployments for AWS Lambda are set up by provisioning a versioned Lambda function, a live alias, CloudWatch alarms, and a CodeDeploy deployment group within a CDK stack to shift traffic gradually and roll back automatically.

What is the best way to automate Lambda rollback during production traffic shifting?

Automated rollback during Lambda traffic shifting is achieved by configuring CloudWatch alarms for errors and latency, then linking them to a CodeDeploy deployment group configured with a Canary or Linear deployment config.

Does CodeDeploy support linear and canary deployment strategies for Lambda functions?

CodeDeploy supports both canary and linear deployment strategies for Lambda functions, allowing you to manage traffic during upgrades by gradually shifting traffic and automatically rolling back on detected issues.

When do I need a Lambda alias and version for progressive deployments?

A Lambda alias and version are required for progressive deployments when you need to shift traffic between distinct function revisions, enabling CodeDeploy to route a percentage of traffic to the new version while retaining the old version for rollback.

Can I use CloudWatch alarms to trigger an automated rollback for serverless workloads?

CloudWatch alarms can trigger an automated rollback for serverless workloads by monitoring error rates and latency metrics, signaling CodeDeploy to halt the canary deployment and revert traffic to the previous Lambda version.

Why does my Lambda canary deployment fail without a CodeDeploy deployment group?

A Lambda canary deployment fails without a CodeDeploy deployment group because the group orchestrates the traffic shifting between function versions and manages the automated rollback responses triggered by CloudWatch alarms.