Skip to content

Releases: andrewbakercloudscale/cloudtorepo

v1.8.1 — Hung AWS call prevention & Cognito pagination fixes

29 Mar 11:13

Choose a tag to compare

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 || true with || break on 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.sh

v1.8.0 — Bash quality improvements

27 Mar 12:42

Choose a tag to compare

What's changed

Bash quality improvements (all scripts)

  • deploy-wordpress.sh — removed set -e, added set -o pipefail, explicit || { ... ; exit 1; } error checks after every command, usage() + --help, dependency checks for ssh/scp/curl, KEY and HOST now read from SSH_KEY / DEPLOY_HOST env vars (defaults preserved)
  • sync.sh — added usage(), --help, aws dependency check, main() + BASH_SOURCE guard
  • reconcile.sh, import.sh, report.sh, run.sh — wrapped execution in main() with BASH_SOURCE guard for safe sourcing and testing
  • cloudtorepo.sh, drift.sh — added BASH_SOURCE guard
  • tests/helpers/mock_aws.bash — added set -o pipefail
  • scripts/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)