-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
120 lines (101 loc) · 2.65 KB
/
variables.tf
File metadata and controls
120 lines (101 loc) · 2.65 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
variable "vpc_cidr" {
description = "CIDR block for the VPC"
type = string
}
variable "country" {
description = "Country tag for resources"
type = string
}
variable "project" {
description = "Project tag for resources"
type = string
}
variable "platform" {
description = "Platform tag for resources"
type = string
}
variable "private_subnets" {
description = "Private subnets with CIDR and AZ"
type = map(object({
cidr = string
az = string
}))
}
variable "public_subnets" {
description = "Public subnets with CIDR and AZ"
type = map(object({
cidr = string
az = string
}))
}
variable "private_route_tables" {
description = "Private route tables with names"
type = map(object({
name = string
}))
}
variable "public_route_tables" {
description = "Public route tables with names"
type = map(object({
name = string
}))
}
variable "igw_name" {
description = "Name for Internet Gateway"
type = string
}
variable "eips" {
description = "Elastic IPs with names"
type = map(object({
name = string
}))
}
variable "nat_gateways" {
description = "NAT gateways with linked EIP and subnet"
type = map(object({
name = string
eip = string
subnet = string
}))
}
variable "security_groups" {
description = "Security groups with ingress/egress rules"
type = map(object({
name = string
description = string
ingress = list(object({ from_port = number, to_port = number, protocol = string, cidr_blocks = list(string) }))
egress = list(object({ from_port = number, to_port = number, protocol = string, cidr_blocks = list(string) }))
}))
}
variable "tgw_id" {
description = "Transit Gateway ID"
type = string
}
variable "tgw_subnets" {
description = "Subnets for TGW attachment"
type = list(string)
}
variable "tgw_name" {
description = "TGW attachment name"
type = string
}
variable "default_acl_id" {
description = "Default Network ACL ID"
type = string
}
variable "default_acl_subnets" {
description = "Subnets associated with default ACL"
type = list(string)
}
variable "default_acl_ingress" {
description = "Ingress rules for default ACL"
type = list(object({ rule_no=number, protocol=string, action=string, cidr_block=string, from_port=number, to_port=number }))
}
variable "default_acl_egress" {
description = "Egress rules for default ACL"
type = list(object({ rule_no=number, protocol=string, action=string, cidr_block=string, from_port=number, to_port=number }))
}
variable "default_acl_name" {
description = "Name for default network ACL"
type = string
}