From 711f305dcebf3549cf4d0a6e9453ee7d0b934114 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 1 Jun 2018 14:06:25 -0400 Subject: [PATCH] core: TestContext2Validate_interpolateMap --- terraform/test-fixtures/issue-9549/main.tf | 5 +++-- terraform/test-fixtures/issue-9549/mod/main.tf | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/terraform/test-fixtures/issue-9549/main.tf b/terraform/test-fixtures/issue-9549/main.tf index b60a7c87c..25452930d 100644 --- a/terraform/test-fixtures/issue-9549/main.tf +++ b/terraform/test-fixtures/issue-9549/main.tf @@ -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" } diff --git a/terraform/test-fixtures/issue-9549/mod/main.tf b/terraform/test-fixtures/issue-9549/mod/main.tf index 169a39b86..1121564dc 100644 --- a/terraform/test-fixtures/issue-9549/mod/main.tf +++ b/terraform/test-fixtures/issue-9549/mod/main.tf @@ -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"