-
Notifications
You must be signed in to change notification settings - Fork 16
/
variables.tf
47 lines (40 loc) · 1.33 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
variable "transit_gateway_id" {
description = "ID of the Transit Gateway"
type = string
}
variable "peer_region" {
description = "Region of EC2 Transit Gateway to peer with"
type = string
}
variable "peer_transit_gateway_id" {
description = "ID of the Transit Gateway to peer with"
type = string
}
variable "peer_account_id" {
description = "ID of the AWS account that owns the Transit Gateway peer"
type = string
default = null
}
variable "options" {
description = "Object of options for the TGW peering attachment"
type = object({
dynamic_routing = optional(string)
})
default = null
validation {
condition = var.options != null && try(var.options.dynamic_routing, null) != null ? contains(["enable", "disable"], var.options.dynamic_routing) : true
error_message = "`var.options.dynamic_routing` must be one of: \"enable\", \"disable\"."
}
}
variable "tags" {
description = "Map of tags to apply to the TGW peering attachment"
type = map(string)
default = {}
}
variable "transit_gateway_route_table_association" {
description = "ID of the Transit Gateway route table to associate with the Peering attachment (an attachment can be associated with a single TGW route table)"
type = object({
transit_gateway_route_table_id = string
})
default = null
}