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 Storage Gateway VM in vSphere" } variable "disk_path" { default = "/dev/sdb" type = string description = "Disk path on the Storage Gateway VM where the cache disk resides on the OS" } variable "disk_node" { default = "/dev/sdb" type = string description = "Disk node on the SGW Gateway VM 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" 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 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 }