aj-geddes avatar

Blue Green Deployment

This handles the infrastructure setup for running two identical production environments and switching traffic between them, typically through load balancers or DNS. You'd reach for this when you need true zero-downtime deployments or want instant rollback without redeploying anything. The skill includes scripts for traffic switching with AWS ALB target groups and rollback automation. It's overkill for simple apps but makes sense for high-stakes releases where you need that safety net of keeping the old environment warm and ready. The main trade-off is running double the infrastructure during deployments, which can get expensive if your transition windows are long.

skills.sh installs
437
GitHub stars
379
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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..."

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
AI & Agent Building, Marketing & SEO
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1aj-geddes avatardisaster-recovery-testingaj-geddes/useful-ai-promptsExecute comprehensive disaster recovery tests, validate recovery procedures, and document lessons learned from DR exercises.437skills.sh installs
2lambdatest avatarappium-skilllambdatest/agent-skillsGenerates production-grade Appium mobile automation scripts for Android and iOS in Java, Python, or JavaScript. Supports real device and emulator testing locall437skills.sh installs
3saisudhir14 avatargolangsaisudhir14/golang-agent-skillgolang437skills.sh installs
4steipete avatarcreate-clisteipete/agent-scriptsCLI UX/spec: args, flags, help, output, errors, config, dry-run.437skills.sh installs
5aj-geddes avatarrelease-planningaj-geddes/useful-ai-promptsPlan, coordinate, and execute software releases across environments. Manage versioning, rollout strategies, rollback procedures, and stakeholder communication f436skills.sh installs
6jwynia avatarcontext-networkjwynia/agent-skillsBootstrap, maintain, and evolve context networks across their full lifecycle. Use when starting a new project, when existing documentation feels scattered, or w436skills.sh installs