terraform/internal/command/testdata/dynamic-module-sources/plan-with-version-mismatch/main.tf
2026-03-04 11:45:59 +01:00

15 lines
447 B
HCL

# This fixture tests that plan detects a version mismatch when the dynamic
# version constraint changes between init and plan.
#
# The pre-populated .terraform/modules/modules.json records version 0.0.1
# but the configuration requires a version determined by the const variable.
variable "module_version" {
type = string
const = true
}
module "child" {
source = "hashicorp/module-installer-acctest/aws"
version = var.module_version
}