Quantcast
Channel: How to get VPC id in Terraform module? - DevOps Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by Srikanth for How to get VPC id in Terraform module?

It should be written as:output "vpc_id" { value = aws_vpc.production_vpc.id}

View Article



Answer by Martin Atkins for How to get VPC id in Terraform module?

Without seeing the contents of your two modules I'm guessing a bit, but it looks like you have an AWS VPC declared in your vpc module and some subnets declared in your prod_subnets module and you are...

View Article

How to get VPC id in Terraform module?

I have a module structure likemodule "vpc" {source = "./modules/vpc"}module "prod_subnets" {source = "./modules/vpc/modules/subnets/production"}when running am getting an error like[0m on...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images