Skip to content
aj-geddes avatar

Blue Green Deployment

Zero-downtime blue-green deployment with instant traffic switching and rollback between two production environments.

CCM score
38 of 100
skills.sh installs
440
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers two identical production environments, switching traffic between them to release without downtime
  • Includes a Quick Start ConfigMap with a switch-traffic.sh script that retargets AWS ALB target groups via aws elbv2
  • Provides reference guides for load balancer setup, a rollback script, and monitoring and validation
  • Designed for high-risk releases, database schema changes, and migrations that need fast rollback

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill blue-green-deployment -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Blue-Green Deployment

Table of Contents

Overview

Deploy applications using blue-green deployment patterns to maintain two identical production environments, enabling instant traffic switching and rapid rollback capabilities.

When to Use

  • Zero-downtime releases
  • High-risk deployments
  • Complex application migrations
  • Database schema changes
  • Rapid rollback requirements
  • A/B testing with environment separation
  • Staged rollout strategies

Quick Start

Minimal working example:

# blue-green-setup.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: blue-green-config
  namespace: production
data:
  switch-traffic.sh: |
    #!/bin/bash
    set -euo pipefail

    CURRENT_ACTIVE="${1:-blue}"
    TARGET="${2:-green}"
    ALB_ARN="arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/myapp-alb/1234567890abcdef"

    echo "Switching traffic from $CURRENT_ACTIVE to $TARGET..."

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the blue-green-deployment skill do?

The blue-green-deployment skill implements blue-green deployment strategies for zero-downtime releases. It provides traffic switching between two environments and instant rollback capability. A Quick Start example shows a shell script that switches an AWS load balancer's traffic between blue and green target groups.

How do I install the blue-green-deployment skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill blue-green-deployment -y in your project. After installing, the agent can plan and carry out blue-green releases with traffic switching and rollback.

Who should use the blue-green-deployment skill?

The skill suits teams running high-risk deployments, zero-downtime releases, or complex application migrations. It also fits projects with database schema changes or rapid rollback requirements. Staged rollout and A/B testing with environment separation are other listed uses.

Where does the blue-green-deployment skill rank in DevOps and Cloud?

It sits in the DevOps and Cloud category on Claude Marketplaces, alongside Azure skills such as azure-deploy and azure-diagnostics. Its focus on blue-green switching and instant rollback sets it apart from those Azure-specific tools. The Quick Start example uses AWS Application Load Balancer target groups.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Blue Green Deployment

More DevOps & Cloud