aws-ecs-codedeploy-blue-green

Automate ECS blue/green deployments with ALB weight rules and CodeDeploy references.

320|3|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/mizchi/skills --skill aws-ecs-codedeploy-blue-green
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-ecs-codedeploy-blue-green
Source: https://github.com/mizchi/skills/tree/main/aws/ecs-codedeploy-blue-green
Command: npx skills add https://github.com/mizchi/skills --skill aws-ecs-codedeploy-blue-green

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ECS blue/green deployments can be complex and error-prone; prefer ALB-native weighted routing to minimize overhead and avoid CodeDeploy unless required by existing pipelines.

Core Features & Use Cases

  • ALB-native weighted routing for blue/green deployments with two target groups and a single listener rule.
  • Canary-style traffic shifting with weighted target groups and optional sticky sessions.
  • Reference patterns for CodeDeploy ECS blue/green including lifecycle.ignore_changes and deployment configs.

Quick Start

Define two target groups (blue and green) and a single listener rule to start shifting traffic by weight.

Frequently Asked Questions about aws-ecs-codedeploy-blue-green

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

FAQPage Schema
How do I set up ECS blue/green deployments using ALB weighted routing?

To set up ECS blue/green deployments with ALB, define two target groups (blue and green) and configure a single listener rule to shift traffic by weight. This approach uses ALB-native weighted routing to enable zero-downtime rollouts.

What is the difference between using ALB weighted routing and CodeDeploy for ECS traffic shifting?

ALB weighted routing minimizes operational overhead by using native listener rules for traffic shifting, whereas CodeDeploy provides reference patterns for deployment configs and rollback strategies. You should prefer ALB routing unless your existing CI/CD pipelines explicitly require CodeDeploy.

Can I achieve canary-style traffic shifts with ECS and an ALB?

Yes, you can achieve canary-style traffic shifting by configuring weighted target groups on your ALB. This setup supports gradual traffic shifts and optional sticky sessions to safely roll out new ECS service versions.

How do I handle Terraform lifecycle ignore_changes for ECS blue/green deployments?

When using Terraform for ECS blue/green deployments, apply lifecycle.ignore_changes to prevent Terraform from reverting deployment configurations managed by CodeDeploy or ALB weight updates. This ensures your automated rollouts remain stable.

Do I need CodeDeploy to manage rollback strategies for ECS services?

CodeDeploy is not strictly required if you use ALB-native weighted routing for traffic management. However, CodeDeploy reference patterns are included to support automated rollback strategies and canary-like traffic shifts when integrated with existing deployment pipelines.