From 142ecfefe063c8f78cdbcbaaa3b5bb963831a98e Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Fri, 8 Mar 2019 07:45:33 +0000 Subject: [PATCH] docs: Differentiate 0.11/0.12 in terraform_remote_state --- .../docs/providers/terraform/d/remote_state.html.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/website/docs/providers/terraform/d/remote_state.html.md b/website/docs/providers/terraform/d/remote_state.html.md index 8f8d2322da..d0e2f7b0d1 100644 --- a/website/docs/providers/terraform/d/remote_state.html.md +++ b/website/docs/providers/terraform/d/remote_state.html.md @@ -29,10 +29,17 @@ 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}" +} ``` ## Argument Reference @@ -54,7 +61,9 @@ The following arguments are supported: In addition to the above, the following attributes are exported: -* `outputs` - Each root-level [output](/docs/configuration/outputs.html) +* (v0.12+) `outputs` - Each root-level [output](/docs/configuration/outputs.html) + in the remote state appears as a top level attribute on the data source. +* (<= v0.11) `` - Each root-level [output](/docs/configuration/outputs.html) in the remote state appears as a top level attribute on the data source. ## Root Outputs Only