NEW: remote-state

This commit is contained in:
xpk
2020-08-07 10:12:46 +08:00
parent 6cb61312f7
commit be750e31a1
3 changed files with 28 additions and 0 deletions
@@ -0,0 +1,10 @@
data "terraform_remote_state" "vpc" {
backend = "local"
config = {
path = "../vpc-subnets/terraform.tfstate"
}
}
output "vpc_id" {
value = data.terraform_remote_state.vpc.outputs.vpc_id
}