mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 19:02:07 +03:00
@@ -1,5 +1,8 @@
|
||||
variable "ENV" {}
|
||||
variable "AWS_REGION" {}
|
||||
variable "ENV" {
|
||||
}
|
||||
|
||||
variable "AWS_REGION" {
|
||||
}
|
||||
|
||||
module "main-vpc" {
|
||||
source = "terraform-aws-modules/vpc/aws"
|
||||
@@ -16,21 +19,22 @@ module "main-vpc" {
|
||||
|
||||
tags = {
|
||||
Terraform = "true"
|
||||
Environment = "${var.ENV}"
|
||||
Environment = var.ENV
|
||||
}
|
||||
}
|
||||
|
||||
output "vpc_id" {
|
||||
description = "The ID of the VPC"
|
||||
value = "${module.main-vpc.vpc_id}"
|
||||
value = module.main-vpc.vpc_id
|
||||
}
|
||||
|
||||
output "private_subnets" {
|
||||
description = "List of IDs of private subnets"
|
||||
value = ["${module.main-vpc.private_subnets}"]
|
||||
value = module.main-vpc.private_subnets
|
||||
}
|
||||
|
||||
output "public_subnets" {
|
||||
description = "List of IDs of public subnets"
|
||||
value = ["${module.main-vpc.public_subnets}"]
|
||||
value = module.main-vpc.public_subnets
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user