From 366fed9d4d84295861d05890d0033b79bc32c7f2 Mon Sep 17 00:00:00 2001 From: a-hat <51818964+a-hat@users.noreply.github.com> Date: Mon, 15 Jul 2019 11:22:35 +0200 Subject: [PATCH] fix example config for terraform >= 0.12 --- website/docs/providers/terraform/index.html.markdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/docs/providers/terraform/index.html.markdown b/website/docs/providers/terraform/index.html.markdown index f0b7784a0d..6ccc56bcae 100644 --- a/website/docs/providers/terraform/index.html.markdown +++ b/website/docs/providers/terraform/index.html.markdown @@ -25,6 +25,13 @@ data "terraform_remote_state" "vpc" { } } +# Terraform >= 0.12 +resource "aws_instance" "foo" { + # ... + subnet_id = data.terraform_remote_state.vpc.outputs.subnet_id +} + +# Terraform <= 0.11 resource "aws_instance" "foo" { # ... subnet_id = "${data.terraform_remote_state.vpc.subnet_id}"