mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
fix example config for terraform >= 0.12
This commit is contained in:
parent
56e33a4546
commit
366fed9d4d
@ -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…
Reference in New Issue
Block a user