Turn a manual checklist into automation
Goal: Create a script you can trust in production-like tasks.
- Start by writing the manual steps as comments.
- Add checks (required env vars, command existence).
- Add `set -euo pipefail` and clear error messages.
- Log what you do (`echo` or `logger`) and capture outputs.
- Test on a throwaway environment, then version-control it.