Skip to content

Instantly share code, notes, and snippets.

@ryanvgates
Created July 5, 2023 20:12
Show Gist options
  • Save ryanvgates/c6725d8f7b3c7b619b8d77adffcedb50 to your computer and use it in GitHub Desktop.
Save ryanvgates/c6725d8f7b3c7b619b8d77adffcedb50 to your computer and use it in GitHub Desktop.
Terraform staying current
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