Bash Deployment Toolkit
8 production-tested bash scripts: zero-downtime deploy, health check waiter, rollback trigger, blue/green switch, log tailer, and environment diff checker.
8 Production-Tested Bash Deployment Scripts
A collection of battle-tested bash scripts covering the most common deployment operations — zero-downtime deploys, health check waiting, rollbacks, blue/green traffic switching, and more. Drop them into any project.
What's Included
deploy.sh— zero-downtime deployment with pre/post hookswait-healthy.sh— health check poller with configurable timeout and intervalrollback.sh— rollback to previous version with confirmation promptblue-green-switch.sh— traffic switch between blue and green target groupstail-deploy-logs.sh— real-time log tailer for ECS/CloudWatch during deploysenv-diff.sh— diff two environments' variables to catch config driftcheck-dependencies.sh— pre-deploy dependency checker (Docker, AWS CLI, jq, etc.)notify.sh— send Slack/Teams/webhook notification on deploy outcome
What You Get
- All 8 scripts, documented with usage comments and configurable via env vars
lib/common.sh— shared logging and error handling library sourced by all scriptsREADME.md— usage examples and integration patterns for each script
Requirements
- bash 4+, AWS CLI v2, jq (checked by
check-dependencies.sh) - Works on Linux, macOS, and in GitHub Actions / CI runners