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
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.
About
Use cases: devops, cloud
Reviews
Write a reviewNo 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
- 0.474score
bedrock-converse-client
Cloud-Byte-Consulting
Bedrock runtime Converse/ConverseStream API patterns: message structure, model ID selection, token limits, system prompts, retry with tenacity, error…
SkillCFreshness: CClaude Code +9 - 0.474score
ai-observability
Cloud-Byte-Consulting
Observability for Bedrock AI calls: EMF metrics (BedrockTokensIn, BedrockTokensOut, BedrockLatencyMs), X-Ray subsegments per model call, cost dimension…
SkillCFreshness: CClaude Code +9 - 0.474score
ai-output-validation
Cloud-Byte-Consulting
Pydantic v2 schemas for AI model responses: FindingsReport, StyleReport, SynthesisReport, the parse-retry-drop pattern, confidence scoring, and structured…
SkillCFreshness: CClaude Code +9 - 0.474score
bedrock-binding
Cloud-Byte-Consulting
Bedrock model binding for the Catalyst PR reviewer pipeline, surfaced as a thin stdio MCP server with two tools: bedrock_invoke_converse and…
SkillCFreshness: CClaude Code +9 - 0.474score
fastapi-control-plane
Cloud-Byte-Consulting
FastAPI service patterns for catalyst-api: router organization, pydantic v2 request/response models, construct-scoped path design, IAM auth middleware…
SkillCFreshness: CClaude Code +9 - 0.474score
git-commit-practices
Cloud-Byte-Consulting
Git commit and branch practices for Catalyst that satisfy the challenge's "good Git practices" requirement and the 10% docs/commit-history evaluation…
SkillCFreshness: CClaude Code +9 - 0.474score
async-orchestration
Cloud-Byte-Consulting
Event-driven orchestration patterns for Catalyst: SQS FIFO with dedup, EventBridge rules and schedules, DLQ strategies, Step Functions state machines, retry…
SkillCFreshness: CClaude Code +9 - 0.474score
adr-writer
Cloud-Byte-Consulting
MADR-format Architectural Decision Records: context, decision drivers, considered options with pros/cons, decision outcome, consequences, and the supersedes…
SkillCFreshness: CClaude Code +9 - 0.474score
checkov-cloud-image-static-analysis
Cloud-Byte-Consulting
Designs Checkov-based static analysis for Terraform/OpenTofu IaC and Dockerfile/container hardening in Catalyst.
SkillCFreshness: CClaude Code +9 - 0.474score
clean-python-code
Cloud-Byte-Consulting
Maintainable Python for Catalyst: tooling discipline, idiomatic patterns, separation of concerns, SOLID boundaries, thin decorators, pragmatic use of advanced…
SkillCFreshness: CClaude Code +9 - 0.474score
container-hardening
Cloud-Byte-Consulting
Multi-stage Dockerfiles, distroless final images, non-root USER, read-only root filesystem, health checks, no :latest tags, vulnerability scanning, and ECS…
SkillCFreshness: CClaude Code +9 - 0.474score
devsecops-integration
Cloud-Byte-Consulting
Shift-left security in Catalyst's CI/CD pipelines: SBOM generation, dependency scanning (pip-audit, npm audit, govulncheck), secret scanning (gitleaks…
SkillCFreshness: CClaude Code +9
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
- Source
- GitHubgithub-graphql
More from Cloud-Byte-Consulting
- 0.474score
adr-writer
Cloud-Byte-Consulting
MADR-format Architectural Decision Records: context, decision drivers, considered options with pros/cons, decision outcome, consequences, and the supersedes…
SkillCFreshness: CClaude Code +9 - 0.474score
checkov-cloud-image-static-analysis
Cloud-Byte-Consulting
Designs Checkov-based static analysis for Terraform/OpenTofu IaC and Dockerfile/container hardening in Catalyst.
SkillCFreshness: CClaude Code +9 - 0.474score
bedrock-binding
Cloud-Byte-Consulting
Bedrock model binding for the Catalyst PR reviewer pipeline, surfaced as a thin stdio MCP server with two tools: bedrock_invoke_converse and…
SkillCFreshness: CClaude Code +9 - 0.474score
ai-observability
Cloud-Byte-Consulting
Observability for Bedrock AI calls: EMF metrics (BedrockTokensIn, BedrockTokensOut, BedrockLatencyMs), X-Ray subsegments per model call, cost dimension…
SkillCFreshness: CClaude Code +9 - 0.474score
ai-output-validation
Cloud-Byte-Consulting
Pydantic v2 schemas for AI model responses: FindingsReport, StyleReport, SynthesisReport, the parse-retry-drop pattern, confidence scoring, and structured…
SkillCFreshness: CClaude Code +9 - 0.474score
clean-python-code
Cloud-Byte-Consulting
Maintainable Python for Catalyst: tooling discipline, idiomatic patterns, separation of concerns, SOLID boundaries, thin decorators, pragmatic use of advanced…
SkillCFreshness: CClaude Code +9
Cite this page
deployment-strategies skill. Agent Mart. https://agentmart.dev/skills/cloud-byte-consulting-deployment-strategies (last updated 2026-10-24)