-
Notifications
You must be signed in to change notification settings - Fork 195
/
vpc.tf
56 lines (44 loc) · 927 Bytes
/
vpc.tf
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
variable "environment" {
type = string
}
variable "vpc_cidr_block" {
type = string
}
variable "public_cidr1" {
type = string
}
variable "public_cidr2" {
type = string
}
variable "public_cidr3" {
type = string
}
variable "private_cidr1" {
type = string
}
variable "private_cidr2" {
type = string
}
variable "private_cidr3" {
type = string
}
variable "az1" {
type = string
}
variable "az2" {
type = string
}
variable "az3" {
type = string
}
module "vpc" {
source = "./modules/vpc"
environment = var.environment
vpc_cidr_block = var.vpc_cidr_block
availability_zones = [ var.az1, var.az2, var.az3 ]
public_subnet_cidr_blocks = [ var.public_cidr1, var.public_cidr2, var.public_cidr3 ]
private_subnet_cidr_blocks = [ var.private_cidr1, var.private_cidr2, var.private_cidr3 ]
}
output "vpc_id" {
value = module.vpc.id
}