core: TestContext2Validate_interpolateMap
This commit is contained in:
parent
71cedf19a4
commit
711f305dce
|
@ -2,6 +2,7 @@ module "mod" {
|
||||||
source = "./mod"
|
source = "./mod"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "template_file" "root_template" {
|
resource "template_instance" "root_template" {
|
||||||
template = "ext: ${module.mod.base_config["base_template"]}"
|
compute_value = "ext: ${module.mod.base_config["base_template"]}"
|
||||||
|
compute = "value"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
resource "template_file" "example" {
|
resource "template_instance" "example" {
|
||||||
template = "template text"
|
compute_value = "template text"
|
||||||
|
compute = "value"
|
||||||
}
|
}
|
||||||
|
|
||||||
output "base_config" {
|
output "base_config" {
|
||||||
value = {
|
value = {
|
||||||
base_template = "${template_file.example.rendered}"
|
base_template = "${template_instance.example.value}"
|
||||||
|
|
||||||
# without this we fail with no entries
|
# without this we fail with no entries
|
||||||
extra = "value"
|
extra = "value"
|
||||||
|
|
Loading…
Reference in New Issue