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