Skip to content

Commit

Permalink
docs: Differentiate 0.11/0.12 in terraform_remote_state
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Mar 13, 2019
1 parent 2b726a8 commit 142ecfe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion website/docs/providers/terraform/d/remote_state.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) `<OUTPUT NAME>` - 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
Expand Down

0 comments on commit 142ecfe

Please sign in to comment.