-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
63 lines (54 loc) · 2.06 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
#######################################################
# TGW attachment
#######################################################
variable "subnet_ids" {
type = list(string)
description = "(Required) Identifiers of Subnets (Example: subnet-xxxxxxxxxxxxxxxxx)"
}
variable "transit_gateway" {
type = string
description = "(Required) Select the environement of the Transit Gateway: Prod, Preprod or Dev"
validation {
condition = var.transit_gateway == "Prod" || var.transit_gateway == "Preprod" || var.transit_gateway == "Dev"
error_message = "Transit Gateway available : Prod, Preprod or Dev."
}
}
variable "vpc_id" {
type = string
description = "(Required) Identifier of the VPC to attach"
}
variable "dns_support" {
type = string
default = "enable"
description = "(Optional) Whether DNS support is enabled. Valid values: disable, enable. Default value: enable"
}
variable "ipv6_support" {
type = string
default = "disable"
description = "(Optional) Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable"
}
variable "transit_gateway_default_route_table_association" {
type = string
default = false
description = "(Optional) Boolean whether the VPC Attachment should be associated with the Transit Gateway association default route table. Default value: false"
}
variable "transit_gateway_default_route_table_propagation" {
type = string
default = false
description = "(Optional) Boolean whether the VPC Attachment should propagate routes with the Transit Gateway propagation default route table. Default value: false"
}
#######################################################
# TGW Tags
#######################################################
variable "vpc_name" {
type = string
default = "VPC-CLIENT"
description = "(Required) Provide the logical name of the VPC that will be attached to the transit gateway,format VPC-Name"
}
variable "contact" {
type = string
}
variable "tags" {
type = map(string)
description = "A map of tags"
}