NEW: remote-state
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user