Terraform 0.7.0 data resource for remote state does not use the 'output' path (#7802)
This commit is contained in:
parent
a61687add1
commit
8378333f64
|
@ -22,7 +22,7 @@ data "terraform_remote_state" "vpc" {
|
||||||
|
|
||||||
resource "aws_instance" "foo" {
|
resource "aws_instance" "foo" {
|
||||||
# ...
|
# ...
|
||||||
subnet_id = "${data.terraform_remote_state.vpc.output.subnet_id}"
|
subnet_id = "${data.terraform_remote_state.vpc.subnet_id}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,6 @@ data "terraform_remote_state" "vpc" {
|
||||||
|
|
||||||
resource "aws_instance" "foo" {
|
resource "aws_instance" "foo" {
|
||||||
# ...
|
# ...
|
||||||
subnet_id = "${data.terraform_remote_state.vpc.output.subnet_id}"
|
subnet_id = "${data.terraform_remote_state.vpc.subnet_id}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue