Skip to content

v0.23.9

Compare
Choose a tag to compare
@yorinasub17 yorinasub17 released this 15 Apr 17:04
· 784 commits to master since this release
706b641

Updated CLI args, config attributes and blocks

  • terragrunt-source [CLI Arg]
  • dependency [block]

Description

This fixes a bug where setting --terragrunt-source on a module with dependencies updated the source of both the current module and the dependency. Starting this version, when using --terragrunt-source on a module with a dependency the dependency's terraform source will be updated to the combined path using // as an anchor.

For example, if you had the following configs:

live/vpc/terragrunt.hcl

terraform {
  source = "/path/to/my/modules//vpc
}

live/app/terragrunt.hcl

terraform {
  source = "/path/to/my/modules//app
}

dependency "vpc" {
  config_path = "../vpc"
}

and you ran terragrunt plan --terragrunt-source /alternative//app in the app module folder (live/app), the source of the app will be updated to /alternative//app and the source of the vpc module when reading the dependency will be updated to /alternative//vpc.

Related links