-
Notifications
You must be signed in to change notification settings - Fork 0
/
vpc.tf
20 lines (19 loc) · 861 Bytes
/
vpc.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
################################################################################
# Virtual private cloud (VPC)
################################################################################
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "3.14.4"
name = var.vpc_name
cidr = var.vpc_cidr
azs = var.vpc_azs
private_subnets = var.vpc_private_subnets
public_subnets = var.vpc_public_subnets
database_subnets = var.vpc_database_subnets
create_database_subnet_group = true
enable_dns_hostnames = true
enable_dns_support = true
enable_nat_gateway = true
single_nat_gateway = true
tags = var.vpc_tags
}