Created
July 5, 2023 20:12
-
-
Save ryanvgates/c6725d8f7b3c7b619b8d77adffcedb50 to your computer and use it in GitHub Desktop.
Terraform staying current
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IFS=$'\n' read -rd '' -A stacks <<<"$(terraspace list -t stack)" | |
for stack in $stacks; do | |
echo "Planning ${stack#$prefix}" | |
output=$(terraspace plan ${stack#$prefix} 2>&1) | |
echo $(echo $output | grep "Plan:") | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment