opentofu/internal/configs/testdata/valid-files/modules-with-version.tf
baa-ableton 85bfb19577
Fix #2584: Accept null value for version if module source is local (#2660)
Signed-off-by: Babur Ayanlar <babur.ayanlar@ableton.com>
Signed-off-by: baa-ableton <110462357+baa-ableton@users.noreply.github.com>
2025-05-12 09:33:53 -04:00

15 lines
No EOL
240 B
HCL

locals {
module_version = null
}
module "foo" {
source = "./foo"
version = local.module_version
}
locals {
module_version_set = "1.0.0"
}
module "foo_remote" {
source = "hashicorp/foo/bar"
version = local.module_version_set
}