Skip to content

Terraform refresh takes ages

What

This can happen with both Terraform and Terragrunt, so this applies to al

The issue is when running a terraform plan the plan will sit at the below for ages

...
google_folder.sandbox: Refreshing state... [id=folders/<>]
...
^CStopping operation...

This happens because terraform sucks at walking the graph

Solution

Set the parallelism flag to 20 and disable a refresh

terraform plan -parallelism=20 -refresh=false
terragrunt plan -parallelism=20 -refresh=false

Want to make this site better? Open a PR or help fund hosting costs