From 2c203e3293090ef35c39d40acec8f33a9610b864 Mon Sep 17 00:00:00 2001 From: nimzo6689 Date: Wed, 20 Nov 2024 22:54:22 +0900 Subject: [PATCH] Preserve interpolation-only expressions for < 0.11 samples --- website/docs/language/backend/gcs.mdx | 2 +- website/docs/language/state/remote-state-data.mdx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/language/backend/gcs.mdx b/website/docs/language/backend/gcs.mdx index 03032988e0fd..7647c8c09869 100644 --- a/website/docs/language/backend/gcs.mdx +++ b/website/docs/language/backend/gcs.mdx @@ -46,7 +46,7 @@ resource "local_file" "foo" { # Terraform <= 0.11 resource "local_file" "foo" { - content = data.terraform_remote_state.foo.greeting + content = "${data.terraform_remote_state.foo.greeting}" filename = "${path.module}/outputs.txt" } ``` diff --git a/website/docs/language/state/remote-state-data.mdx b/website/docs/language/state/remote-state-data.mdx index b681c26eaf63..c3c230e6b274 100644 --- a/website/docs/language/state/remote-state-data.mdx +++ b/website/docs/language/state/remote-state-data.mdx @@ -112,7 +112,7 @@ resource "aws_instance" "foo" { # Terraform <= 0.11 resource "aws_instance" "foo" { # ... - subnet_id = data.terraform_remote_state.vpc.subnet_id + subnet_id = "${data.terraform_remote_state.vpc.subnet_id}" } ``` @@ -136,7 +136,7 @@ resource "aws_instance" "foo" { # Terraform <= 0.11 resource "aws_instance" "foo" { # ... - subnet_id = data.terraform_remote_state.vpc.subnet_id + subnet_id = "${data.terraform_remote_state.vpc.subnet_id}" } ```