Releases: andrewbakercloudscale/cloudtorepo
Releases · andrewbakercloudscale/cloudtorepo
v1.8.1 — Hung AWS call prevention & Cognito pagination fixes
Bug Fixes
Hung network connections (lib/common.sh)
All AWS CLI calls now enforce --cli-connect-timeout 10 and --cli-read-timeout 30 at the wrapper level. A stalled AWS endpoint can no longer lock up a script process indefinitely.
Silent Cognito pagination failures (cloudtorepo.sh)
- Replaced
|| truewith|| breakon both Cognito jq token-extraction lines. A non-JSON response from AWS (e.g. a throttle or timeout body) now exits the pagination loop instead of silently being treated as "no next page." - Added iteration counters with a hard cap of 100 pages (6,000 pools) on both the user pool and identity pool loops as a belt-and-suspenders backstop.
Upgrade
curl -sSL https://raw.githubusercontent.com/andrewbakercloudscale/cloudtorepo/main/cloudtorepo.sh -o cloudtorepo.sh
chmod +x cloudtorepo.shv1.8.0 — Bash quality improvements
What's changed
Bash quality improvements (all scripts)
deploy-wordpress.sh— removedset -e, addedset -o pipefail, explicit|| { ... ; exit 1; }error checks after every command,usage()+--help, dependency checks forssh/scp/curl,KEYandHOSTnow read fromSSH_KEY/DEPLOY_HOSTenv vars (defaults preserved)sync.sh— addedusage(),--help,awsdependency check,main()+BASH_SOURCEguardreconcile.sh,import.sh,report.sh,run.sh— wrapped execution inmain()withBASH_SOURCEguard for safe sourcing and testingcloudtorepo.sh,drift.sh— addedBASH_SOURCEguardtests/helpers/mock_aws.bash— addedset -o pipefailscripts/hooks/pre-commit— failure message now correctly goes to stderr
Website
- Removed matrix rain overlay
- Updated hero logo to CloudToRepo.jpeg
Verified
- ShellCheck clean across all 21 shell files
- All 112 BATS tests pass
- Live scan confirmed against AWS account 987267051295 (af-south-1)