forked from aws-ia/terraform-aws-storagegateway
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
140 lines (119 loc) · 4.8 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
variable "gateway_name" {
type = string
description = "Storage Gateway Name"
}
variable "join_smb_domain" {
type = bool
sensitive = false
default = true
description = "Setting for controlling whether to join the Storage gateway to an Active Directory (AD) domain for Server Message Block (SMB) file shares. Variables domain_controllers, domain_name, password and username should also be specified to join AD domain."
}
variable "domain_name" {
type = string
sensitive = true
default = ""
description = "The name of the domain that you want the gateway to join"
}
variable "domain_username" {
type = string
sensitive = true
default = ""
description = "The user name for the service account on your self-managed AD domain that SGW use to join to your AD domain"
}
variable "domain_password" {
type = string
sensitive = true
default = ""
description = "The password for the service account on your self-managed AD domain that SGW will use to join to your AD domain"
}
variable "timeout_in_seconds" {
type = number
sensitive = false
default = -1
description = "Specifies the time in seconds, in which the JoinDomain operation must complete. The default is 20 seconds."
}
variable "organizational_unit" {
type = string
sensitive = true
default = ""
description = "The organizational unit (OU) is a container in an Active Directory that can hold users, groups, computers, and other OUs and this parameter specifies the OU that the gateway will join within the AD domain."
}
variable "timezone" {
type = string
description = "Time zone for the gateway. The time zone is of the format GMT, GMT-hr:mm, or GMT+hr:mm.For example, GMT-4:00 indicates the time is 4 hours behind GMT. Avoid prefixing with 0"
default = "GMT"
validation {
condition = can(regex("^GMT[+-](([1-9]|1[0-2]):([0-5][0-9]))|GMT$", var.timezone))
error_message = "Time zone for the gateway. The time zone is of the format GMT, GMT-hr:mm, or GMT+hr:mm."
}
}
variable "gateway_type" {
type = string
description = "Type of the gateway. Valid options are FILE_S3, FILE_FSX_SMB, VTL, CACHED, STORED"
default = "FILE_S3"
validation {
condition = contains(["FILE_S3", "FILE_FSX_SMB", "VTL", "CACHED", "STORED"], var.gateway_type)
error_message = "Incorrect gateway type. Valid options are FILE_S3, FILE_FSX_SMB, VTL, CACHED, STORED"
}
}
variable "gateway_ip_address" {
type = string
description = "IP Address of the SGW appliance in vSphere"
}
variable "disk_path" {
default = "/dev/sdb"
type = string
description = "Disk path on the SGW appliance where the cache disk resides on the OS"
}
variable "disk_node" {
default = "/dev/sdb"
type = string
description = "Disk node on the SGW appliance where the cache disk resides on the OS"
}
variable "domain_controllers" {
default = []
type = list(any)
sensitive = true
description = "List of IPv4 addresses, NetBIOS names, or host names of your domain server. If you need to specify the port number include it after the colon (“:”). For example, mydc.mydomain.com:389."
}
# VPC Endpoint related variables
variable "gateway_vpc_endpoint" {
type = string
description = "Existing VPC endpoint address to be used when activating your gateway. This variable value will be ignored if setting create_vpc_endpoint=true."
default = null
}
variable "create_vpc_endpoint" {
type = bool
description = "Create an interface VPC endpoint for the Storage Gateway"
default = false
}
variable "vpc_id" {
type = string
description = "VPC id for creating a VPC endpoint. Must provide a valid value if create_vpc_endpoint=true."
default = null
}
variable "vpc_endpoint_subnet_ids" {
type = list(string)
description = "Provide existing subnet IDs to associate with the VPC Endpoint. Must provide a valid values if create_vpc_endpoint=true."
default = null
}
variable "create_vpc_endpoint_security_group" {
type = bool
description = "Create a Security Group for the VPC Endpoint for Storage Gateway appliance."
default = false
}
variable "vpc_endpoint_security_group_id" {
type = string
description = "Optionally provide an existing Security Group ID to associate with the VPC Endpoint. Must be set if create_vpc_endpoint_security_group=false"
default = null
}
variable "gateway_private_ip_address" {
type = string
description = "Inbound IP address of Gateway VM appliance for Security Group associated with VPC Endpoint. Must be set if create_vpc_endpoint=true"
default = null
}
variable "vpc_endpoint_private_dns_enabled" {
type = bool
description = "Enable private DNS for VPC Endpoint"
default = false
}