Merge pull request #22068 from a-hat/master

fix example config for terraform >= 0.12
pull/22124/head
Radek Simko 7 years ago committed by GitHub
commit be47a1e11c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}"

Loading…
Cancel
Save