Open
Description
Describe the bug
After removing values blocks from unit and running terragrunt stack apply, the value was still there
Steps To Reproduce
I specified unit values like so:
unit "permissions" {
source = "../modules/permissions"
path = "permissions"
values = {
workload_identity_branch = "main"
}
}
Run terragrunt stack generate
cat .terragrunt-stack/permissions/terragrunt.values.hcl
# Auto-generated by the terragrunt.stack.hcl file by Terragrunt. Do not edit manually
workload_identity_branch = "main"
Remove values block
unit "permissions" {
source = "../modules/permissions"
path = "permissions"
- values = {
- workload_identity_branch = "main"
- }
}
Run terragrunt stack apply
cat .terragrunt-stack/permissions/terragrunt.values.hcl
# Auto-generated by the terragrunt.stack.hcl file by Terragrunt. Do not edit manually
workload_identity_branch = "main"
Expected behavior
I'd assume that without specifying values block files, the generated terragrunt.values.hcl
would also be removed if it existed before.
Workaround
terragrunt stack clean
Versions
- Terragrunt version: v0.80.4
- OpenTofu/Terraform version: v1.12.1
- Environment details (Ubuntu 20.04, Windows 10, etc.): Nixos