-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvpc.tf
More file actions
36 lines (27 loc) · 912 Bytes
/
vpc.tf
File metadata and controls
36 lines (27 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module "bigdevbox_sg" {
source = "terraform-aws-modules/security-group/aws"
name = "bigdevbox"
description = "Allows all inbound traffic to bigdevbox instances (local firewalls provide protection instead)"
vpc_id = module.bigdevbox_vpc.vpc_id
use_name_prefix = false
ingress_cidr_blocks = ["0.0.0.0/0"]
ingress_rules = ["all-all"]
egress_cidr_blocks = ["0.0.0.0/0"]
egress_rules = ["all-all"]
}
module "bigdevbox_vpc" {
source = "terraform-aws-modules/vpc/aws"
name = "bigdevbox-vpc"
cidr = "10.255.0.0/20"
azs = ["us-west-2a", "us-west-2b", "us-west-2c"]
public_subnets = ["10.255.0.0/24", "10.255.1.0/24", "10.255.2.0/24"]
enable_ipv6 = false
enable_nat_gateway = false
single_nat_gateway = false
public_subnet_tags = {
Name = "bigdevbox-vpc-terraform"
}
vpc_tags = {
Name = "bigdevbox-vpc"
}
}