-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
179 lines (154 loc) · 4.89 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
172
173
174
175
176
177
178
179
variable "shared_credentials_file" {
type = string
description = "Path of AWS creds"
default = "/Users/username/.aws/credentials"
}
variable "profile" {
type = string
description = "AWS profile to use create these resources"
default = "default"
}
variable "region" {
type = string
default = "ap-southeast-1"
}
variable "additional_tags" {
type = map(string)
default = {
"createdby" = "devops"
}
}
######### Transit Gateway #########
variable "create_tg" {
type = bool
description = "Want to create Transit Gateway"
default = true
}
variable "name" {
type = string
description = "Name of the EC2 Transit Gateway"
default = null
}
variable "description" {
type = string
description = "Description of the EC2 Transit Gateway"
default = null
}
variable "dns_support" {
type = string
description = "Whether DNS support is enabled. Valid values: disable, enable"
default = "enable"
}
variable "amazon_side_asn" {
type = number
description = "Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534"
default = "64512"
}
variable "auto_accept_shared_attachments" {
type = string
description = "Whether resource attachment requests are automatically accepted. Valid values: disable, enable"
default = "enable"
}
variable "default_route_table_association" {
type = string
description = "Whether resource attachments are automatically associated with the default association route table. Valid values: disable, enable"
default = "disable"
}
variable "default_route_table_propagation" {
type = string
description = "Whether resource attachments automatically propagate routes to the default propagation route table. Valid values: disable, enable"
default = "disable"
}
variable "vpn_ecmp_support" {
type = string
description = "Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: disable, enable"
default = "enable"
}
######### For Customer Gateway
variable "cgw_ip_address" {
type = list(map(string))
description = "The IP address of the gateway's Internet-routable external interface."
default = [
]
}
# {
# "bgp_asn" = 65000
# "ip_address" = "122.175.110.231"
# "type" = "ipsec.1"
# "routing" = "static"
# "name" = "dev-1"
# "tunnel1_inside_cidr" = null
# "tunnel2_inside_cidr" = null
# }
##### For RAM ###
variable "allow_external_principals" {
type = string
description = "Indicates whether principals outside your organization can be associated with a resource share"
default = "true"
}
variable "ram_principals" {
type = list(string)
description = "The principal to associate with the resource share. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN."
default = []
}
########## VPC attachments #############
variable "subnet_ids" {
type = list(string)
description = "Identifiers of EC2 Subnets."
default = []
}
variable "vpc_id" {
type = string
description = "Identifiers of EC2 Subnets."
default = ""
}
variable "ipv6_support" {
type = string
description = "Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable."
default = "disable"
}
variable "transit_gateway_default_route_table_association" {
type = bool
description = "Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. "
default = false
}
variable "transit_gateway_default_route_table_propagation" {
type = bool
description = "Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table"
default = false
}
# Route Tables
variable "create_tg_route_table" {
type = bool
description = "Do you want to create an Route table for TG"
default = true
}
###### VPN attachments
variable "vpn_gateway_id" {
type = string
description = "The ID of the Virtual Private Gateway."
default = null
}
variable "static_routes_only" {
type = bool
description = "Whether the VPN connection uses static routes exclusively. Static routes must be used for devices that don't support BGP."
default = false
}
variable "transit_gateway_vpc_attachment_ids" {
type = list
description = " Identifier of EC2 Transit Gateway Attachments"
default = []
}
##### Extra Route tables ########
variable "additional_rts" {
type = map
description = "Additional Route tables for Transit Gateway"
default = {
}
}
variable "ss_rt_tags" {
type = map
description = "Tags used for creating SS route tables "
default = {
}
}