Skip to content

Terragrunt terraform auto -upgrade

Why

Depending on how you've structured your repo, you may have a central provider file that updates often

Each time you run terragrun run-all init you are bombarded with errors

Solution

Add the below to your base terragrunt.hcl file

terraform {
  extra_arguments "upgrade" {
    commands  = ["init"]
    arguments = ["-upgrade"]
  }
}

Want to make this site better? Open a PR, help fund hosting costs or message me on Matrix