forked from github-aws-runners/terraform-aws-github-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvpc.tf
More file actions
21 lines (16 loc) · 561 Bytes
/
Copy pathvpc.tf
File metadata and controls
21 lines (16 loc) · 561 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "3.11.2"
name = "vpc-${local.environment}"
cidr = "10.0.0.0/16"
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.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_dns_hostnames = true
enable_nat_gateway = true
map_public_ip_on_launch = false
single_nat_gateway = true
tags = {
Environment = local.environment
}
}