mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 17:02:05 +03:00
demo-18
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
module "vpc-prod" {
|
||||
source = "terraform-aws-modules/vpc/aws"
|
||||
|
||||
name = "vpc-prod"
|
||||
cidr = "10.0.0.0/16"
|
||||
|
||||
azs = ["${var.AWS_REGION}a", "${var.AWS_REGION}b", "${var.AWS_REGION}c"]
|
||||
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
|
||||
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
|
||||
|
||||
enable_nat_gateway = false
|
||||
enable_vpn_gateway = false
|
||||
|
||||
tags = {
|
||||
Terraform = "true"
|
||||
Environment = "prod"
|
||||
}
|
||||
}
|
||||
|
||||
module "vpc-dev" {
|
||||
source = "terraform-aws-modules/vpc/aws"
|
||||
|
||||
name = "vpc-dev"
|
||||
cidr = "10.0.0.0/16"
|
||||
|
||||
azs = ["${var.AWS_REGION}a", "${var.AWS_REGION}b", "${var.AWS_REGION}c"]
|
||||
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
|
||||
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
|
||||
|
||||
enable_nat_gateway = false
|
||||
enable_vpn_gateway = false
|
||||
|
||||
tags = {
|
||||
Terraform = "true"
|
||||
Environment = "dev"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user