cloud-byte-consulting/catalyst/deployment-strategies
Claude Code and agent skill by cloud-byte-consulting/catalyst
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install cloud-byte-consulting/catalyst/deployment-strategiesSKILL.md
The same SKILL.md was published earlier as cloud-byte-consulting/catalyst/deployment-strategies.
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) definesTaskDefinitionandContainerName/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
livealias pointing to the latest published version - Use
aws_lambda_aliaswithrouting_configfor 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 = trueevents = ["DEPLOYMENT_FAILURE", "DEPLOYMENT_STOP_ON_ALARM"]
Alarm-based triggers (in alarm_configuration):
- ECS:
catalyst-api-error-rate,catalyst-api-latency - Lambda: per-function
Errorsmetric 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:
States:
StartDeploy— record deployment in DDB, open GitHub IssueValidatePlan— confirm Terraform plan matches expected changesShiftTraffic— invoke CodeDeploy, begin canary/linear shiftBakePeriod— wait 30 min, poll alarms via CloudWatch APIComplete— update DDB, close Issue, notify SNSRollback— 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 approvalstate/agent-working— deploy-orchestrator actively shifting trafficstate/done— deployment complete, bake passedstate/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
AllAtOncetraffic 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
mainto production. - Always ensure the deploy state machine records start/end timestamps and
outcome in DynamoDB for audit trail.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/deployment-strategies/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cloud-byte-consulting/catalyst/deployment-strategies)