This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
135 lines (114 loc) · 3.64 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
variable "create_tgw" {
description = "Controls if TGW should be created (it affects almost all resources)"
type = bool
default = true
}
variable "name" {
description = "Name to be used on all the resources as identifier"
type = string
default = ""
}
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 = "64512"
}
variable "enable_auto_accept_shared_attachments" {
description = "Whether resource attachment requests are automatically accepted"
type = bool
default = false
}
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 "description" {
description = "Description of the EC2 Transit Gateway"
type = string
default = null
}
variable "enable_dns_support" {
description = "Should be true to enable DNS support in the TGW"
type = bool
default = true
}
variable "enable_vpn_ecmp_support" {
description = "Whether VPN Equal Cost Multipath Protocol support is enabled"
type = bool
default = true
}
# VPC attachments
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 = {}
}
# TGW Route Table association and propagation
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
}
# Tags
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
variable "tgw_tags" {
description = "Additional tags for the TGW"
type = map(string)
default = {}
}
variable "tgw_route_table_tags" {
description = "Additional tags for the TGW route table"
type = map(string)
default = {}
}
variable "tgw_default_route_table_tags" {
description = "Additional tags for the Default TGW route table"
type = map(string)
default = {}
}
variable "tgw_vpc_attachment_tags" {
description = "Additional tags for VPC attachments"
type = map(string)
default = {}
}
# TGW resource sharing
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_tags" {
description = "Additional tags for the RAM"
type = map(string)
default = {}
}
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 = ""
}