Skip to content
Agentmart
Submit a tool

deployment-strategies

Blue/green ECS via CodeDeploy, Lambda weighted alias shifting (canary), rollback triggers (alarm-based), pre/post traffic hooks, bake periods, and the…

Skill by Cloud-Byte-Consulting

IndexedBSD-3-Clause
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/cloud-byte-consulting-deployment-strategies

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Blue/green ECS via CodeDeploy, Lambda weighted alias shifting (canary), rollback triggers (alarm-based), pre/post traffic hooks, bake periods, and the deploy-orchestrator Step Functions state machine. Use when implementing or reviewing deployment automation.

Use cases: devops, cloud

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/deployment-strategies

What's inside

Skill name
deployment-strategies
Description
Blue/green ECS via CodeDeploy, Lambda weighted alias shifting (canary), rollback triggers (alarm-based), pre/post traffic hooks, bake periods, and the deploy-orchestrator Step Functions state machine. Use when implementing or reviewing deployment automation.
License
BSD-3-Clause
Instructions
111 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

<!-- Vendored from: platform-catalyst/skills/deployment-strategies/SKILL.md (BittahCriminal/platform-catalyst, BSD-3-Clause). Adapted for Catalyst: PLAN.md/CLAUDE.md/DECISIONS.md scrubbed; ADR-008->ADR-001, ADR-009->ADR-002. -->

## Role

Deployment engineer designing safe, observable, and automatically recoverable
release strategies for the Catalyst IDP. Every deployment is a state machine
transition — never a fire-and-forget push.

## Instructions

### 1. Blue/green ECS with CodeDeploy

Configure CodeDeploy deployment group with:
- Deployment type: `BLUE_GREEN`
- ECS service: `catalyst-api` (Fargate, min 2 tasks)
- Load balancer: ALB with production and test listeners
- Traffic routing: `TimeBasedLinear` — 10% every 5 minutes
- Appspec (`appspec.yml`) defines `TaskDefinition` and `ContainerName/Port`
- Pre-traffic hook Lambda validates health endpoint returns 200
- Post-traffic hook Lambda runs smoke tests against test listener
- Original task set termination wait: 30 minutes (bake period)

Terraform resources: `aws_codedeploy_app`, `aws_codedeploy_deployment_group`
with `blue_green_deployment_config` and `ecs_service` blocks.

### 2. Lambda alias canary

For deploy-orchestrator and other Lambda services:
- Create a `live` alias pointing to the latest published version
- Use `aws_lambda_alias` with `routing_config` for weighted shifting
- Deployment preference: `Canary10Percent5Minutes` (10% for 5 min, then 100%)
- CodeDeploy Lambda deployment group triggers rollback on alarm

### 3. Auto-rollback on CloudWatch alarm triggers

Every deployment group configures `auto_rollback_configuration`:
- `enabled = true`
- `events = ["DEPLOYMENT_FAILURE", "DEPLOYMENT_STOP_ON_ALARM"]`

Alarm-based triggers (in `alarm_configuration`):
- ECS: `catalyst-api-error-rate`, `catalyst-api-latency`
- Lambda: per-function `Errors` metric alarm

If any alarm enters ALARM state during traffic shifting, CodeDeploy
automatically rolls back to the previous task set or alias version.

### 4. Bake period monitoring

After traffic shifting completes (100% on new target):
- 30-minute bake period with active alarm monitoring
- During bake: error rate, latency p99, and DLQ depth are watched
- If alarm fires during bake: manual rollback triggered via Step Functions
- Post-bake: original (blue) task set terminated, deployment marked complete

### 5. Deploy state machine (Step Functions)

The `deploy-orchestrator` Step Functions state machine manages the lifecycle:

```
StartDeploy → ValidatePlan → ShiftTraffic → BakePeriod → Complete
                    │               │              │
                    ▼               ▼              ▼
                 Rollback       Rollback       Rollback
```

States:
- `StartDeploy` — record deployment in DDB, open GitHub Issue
- `ValidatePlan` — confirm Terraform plan matches expected changes
- `ShiftTraffic` — invoke CodeDeploy, begin canary/linear shift
- `BakePeriod` — wait 30 min, poll alarms via CloudWatch API
- `Complete` — update DDB, close Issue, notify SNS
- `Rollback` — trigger CodeDeploy rollback, update Issue with failure reason

### 6. GitHub Issue state transitions for deploys

Deployments are tracked as GitHub Issues with labels:
- `state/pending` — deployment requested, awaiting approval
- `state/agent-working` — deploy-orchestrator actively shifting traffic
- `state/done` — deployment complete, bake passed
- `state/rolled-back` — rollback executed, requires follow-up review

Transitions are managed by the deploy-orchestrator Lambda calling the GitHub
API (via OIDC-authenticated `catalyst-api`). Each transition adds a timeline
comment with deployment metadata (task definition ARN, commit SHA, duration).

### 7. Deployment as the last mile (CI/CD Design Patterns)

Per Bajpai et al: deployment is not a separate concern but the final stage of
the pipeline. The same artifact (container image SHA or Lambda zip hash) that
passed all CI gates is the artifact that deploys — no rebuild. Image tags use
the git commit SHA, never `:latest`. The deploy step consumes the artifact
reference from the CI output, ensuring provenance.

## Output

- Terraform deployment modules under the repository's active IaC path
- Step Functions ASL definition under the repository's deploy-orchestrator path
- Appspec templates under the service deploy path
- Hook Lambda source under the deploy-orchestrator hooks path

## Guardrails

- Never deploy without at least one alarm configured as a rollback trigger.
- Never use `AllAtOnce` traffic routing for production ECS services.
- Never skip the bake period — it is the final proving check before the
  blue task set is terminated.
- Never hardcode image tags — always reference the SHA-tagged artifact from CI.
- Never allow deployments from branches other than `main` to production.
- Always ensure the deploy state machine records start/end timestamps and
  outcome in DynamoDB for audit trail.

From Cloud-Byte-Consulting/Catalyst, BSD-3-Clause.

More from Cloud-Byte-Consulting/Catalyst

Signals

Stars
0
Forks
0
Open issues
57
Last commit (this folder)
May 21, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
BSD-3-Clause
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Cloud-Byte-Consulting

Cite this page

deployment-strategies skill. Agent Mart. https://agentmart.dev/skills/cloud-byte-consulting-deployment-strategies (last updated 2026-10-24)