Skip to content

Instantly share code, notes, and snippets.

@unacceptable
Created September 22, 2020 21:19
Show Gist options
  • Save unacceptable/6d18f6702c153f0d60974dcd7dd9b39c to your computer and use it in GitHub Desktop.
Save unacceptable/6d18f6702c153f0d60974dcd7dd9b39c to your computer and use it in GitHub Desktop.
while read -r MODULE; do
terraform_0.12.29 init "$MODULE"
yes yes | terraform_0.12.29 0.12upgrade "$MODULE"
yes yes | terraform_0.13.2 0.13upgrade "$MODULE"
rm -rf .terraform &
wait $!
done < <(
find . -type d
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment