-
-
Notifications
You must be signed in to change notification settings - Fork 228
/
variables.tf
171 lines (142 loc) · 4.96 KB
/
variables.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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
variable "name" {
description = "Name to be used on all the resources as identifier"
type = string
default = ""
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
################################################################################
# Transit Gateway
################################################################################
variable "create_tgw" {
description = "Controls if TGW should be created (it affects almost all resources)"
type = bool
default = true
}
variable "description" {
description = "Description of the EC2 Transit Gateway"
type = string
default = null
}
variable "amazon_side_asn" {
description = "The Autonomous System Number (ASN) for the Amazon side of the gateway. By default the TGW is created with the current default Amazon ASN."
type = string
default = null
}
variable "enable_default_route_table_association" {
description = "Whether resource attachments are automatically associated with the default association route table"
type = bool
default = true
}
variable "enable_default_route_table_propagation" {
description = "Whether resource attachments automatically propagate routes to the default propagation route table"
type = bool
default = true
}
variable "enable_auto_accept_shared_attachments" {
description = "Whether resource attachment requests are automatically accepted"
type = bool
default = false
}
variable "enable_vpn_ecmp_support" {
description = "Whether VPN Equal Cost Multipath Protocol support is enabled"
type = bool
default = true
}
variable "enable_multicast_support" {
description = "Whether multicast support is enabled"
type = bool
default = false
}
variable "enable_dns_support" {
description = "Should be true to enable DNS support in the TGW"
type = bool
default = true
}
variable "transit_gateway_cidr_blocks" {
description = "One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6"
type = list(string)
default = []
}
variable "timeouts" {
description = "Create, update, and delete timeout configurations for the transit gateway"
type = map(string)
default = {}
}
variable "tgw_tags" {
description = "Additional tags for the TGW"
type = map(string)
default = {}
}
variable "tgw_default_route_table_tags" {
description = "Additional tags for the Default TGW route table"
type = map(string)
default = {}
}
################################################################################
# VPC Attachment
################################################################################
variable "vpc_attachments" {
description = "Maps of maps of VPC details to attach to TGW. Type 'any' to disable type validation by Terraform."
type = any
default = {}
}
variable "tgw_vpc_attachment_tags" {
description = "Additional tags for VPC attachments"
type = map(string)
default = {}
}
################################################################################
# Route Table / Routes
################################################################################
variable "create_tgw_routes" {
description = "Controls if TGW Route Table / Routes should be created"
type = bool
default = true
}
variable "transit_gateway_route_table_id" {
description = "Identifier of EC2 Transit Gateway Route Table to use with the Target Gateway when reusing it between multiple TGWs"
type = string
default = null
}
variable "tgw_route_table_tags" {
description = "Additional tags for the TGW route table"
type = map(string)
default = {}
}
################################################################################
# Resource Access Manager
################################################################################
variable "share_tgw" {
description = "Whether to share your transit gateway with other accounts"
type = bool
default = true
}
variable "ram_name" {
description = "The name of the resource share of TGW"
type = string
default = ""
}
variable "ram_allow_external_principals" {
description = "Indicates whether principals outside your organization can be associated with a resource share."
type = bool
default = false
}
variable "ram_principals" {
description = "A list of principals to share TGW with. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN"
type = list(string)
default = []
}
variable "ram_resource_share_arn" {
description = "ARN of RAM resource share"
type = string
default = ""
}
variable "ram_tags" {
description = "Additional tags for the RAM"
type = map(string)
default = {}
}