-
Notifications
You must be signed in to change notification settings - Fork 16
/
variables.tf
104 lines (92 loc) · 3.39 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
variable "subnet_ids" {
description = "List of subnets to associate with the VPC attachment"
type = list(string)
}
variable "transit_gateway_id" {
description = "ID of the Transit Gateway"
type = string
}
variable "cross_account" {
description = "Boolean whether this is a cross-account Transit Gateway shared via Resource Access Manager"
type = bool
default = false
}
variable "appliance_mode_support" {
description = "Whether Appliance Mode support is enabled. Valid values: disable, enable"
type = string
default = "disable"
validation {
condition = contains(["enable", "disable"], var.appliance_mode_support)
error_message = "`appliance_mode_support` must be one of: \"enable\", \"disable\"."
}
}
variable "dns_support" {
description = "Whether DNS support is enabled. Valid values: disable, enable"
type = string
default = "enable"
validation {
condition = contains(["enable", "disable"], var.dns_support)
error_message = "`dns_support` must be one of: \"enable\", \"disable\"."
}
}
variable "ipv6_support" {
description = "Whether IPv6 support is enabled. Valid values: disable, enable"
type = string
default = "disable"
validation {
condition = contains(["enable", "disable"], var.ipv6_support)
error_message = "`ipv6_support` must be one of: \"enable\", \"disable\"."
}
}
variable "security_group_referencing_support" {
description = "Whether Security Group Referencing Support is enabled. Valid values: disable, enable"
type = string
default = "enable"
validation {
condition = contains(["enable", "disable"], var.security_group_referencing_support)
error_message = "`security_group_referencing_support` must be one of: \"enable\", \"disable\"."
}
}
variable "transit_gateway_default_route_table_association" {
description = "Boolean whether the VPC Attachment should be associated to the Transit Gateway default route table"
type = bool
default = true
}
variable "transit_gateway_default_route_table_propagation" {
description = "Boolean whether the VPC Attachment should propagate routes to the Transit Gateway propagation default route table"
type = bool
default = true
}
variable "transit_gateway_route_table_association" {
description = "ID of the Transit Gateway route table to associate with the VPC attachment (an attachment can be associated with a single TGW route table)"
type = object({
transit_gateway_route_table_id = string
})
default = null
}
variable "transit_gateway_route_table_propagations" {
description = "List of Transit Gateway route tables this VPC attachment will propagate routes to"
type = list(object({
# `name` is used as for_each key
name = string
transit_gateway_route_table_id = string
}))
default = []
}
variable "tags" {
description = "Map of tags to apply to the TGW VPC attachment"
type = map(string)
default = {}
}
variable "vpc_routes" {
description = "List of VPC route objects with a target of the VPC attachment"
type = list(object({
# `name` is used as for_each key
name = string
route_table_id = string
destination_cidr_block = optional(string)
destination_ipv6_cidr_block = optional(string)
destination_prefix_list_id = optional(string)
}))
default = []
}