-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathvariables.tf
157 lines (127 loc) · 4.47 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
variable "create_transfer_server" {
description = "Create the Transfer Server"
default = true
}
variable "create_transfer_logging_role" {
description = "Create the IAM Role for logging"
default = true
}
variable "logging_role_name" {
description = "Name of logging role to if creating one"
default = "default-transfer-server-role"
}
variable "logging_policy_name" {
description = "Name of logging policy to create"
default = "default-transfer-server-policys"
}
variable "logging_role_arn" {
description = "Arn of role to use to allow the service to log"
default = ""
}
variable "identity_provider_type" {
description = "Type of identitiy provider used within the transfer service"
default = "SERVICE_MANAGED"
}
variable "tags" {
description = "Tags to apply to resource"
type = map(string)
default = {}
}
variable "endpoint_type" {
description = "The endpoint type for the transfer server"
default = "PUBLIC"
}
variable "internet_facing_eip" {
description = "If your using a Internet Facing VPC Endpoint type creates EIPS"
default = false
}
variable "internet_facing_eip_count" {
description = "Number of EIPs you wish to create"
default = 0
}
variable "create_route53_record" {
description = "Whether to create the Route53 Record."
default = false
}
variable "route53_record_name" {
description = "Route53 Record Name"
default = ""
}
variable "route53_record_zone" {
description = "Route53 Zone ID"
default = ""
}
variable "transfer_server_endpoint_name" {
description = "Option to create a R53 Record, added due to transfer server lacking VPC functionality"
default = []
type = list(string)
}
variable "dns_role_arn" {
description = "Route53 DNS role arn if applicable"
default = ""
}
variable "iam_path" {
description = "IAM Path applied to IAM role"
default = ""
}
variable "aws_region" {
description = "AWS region used in provider"
default = "eu-west-1"
}
variable "protocols" {
description = "Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint"
default = ["SFTP"]
type = list(string)
}
variable "certificate" {
description = "The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate"
default = ""
}
variable "function" {
description = "The ARN for a lambda function to use for the Identity provider"
default = ""
}
variable "url" {
description = "URL of the service endpoint used to authenticate users with an identity_provider_type of API_GATEWAY"
default = ""
}
variable "invocation_role" {
description = "Amazon Resource Name (ARN) of the IAM role used to authenticate the user account with an identity_provider_type of API_GATEWAY"
default = ""
}
variable "address_allocation_ids" {
description = "A list of address allocation IDs that are required to attach an Elastic IP address to your SFTP server's endpoint. This property can only be used when endpoint_type is set to VPC"
default = []
type = list(string)
}
variable "security_group_ids" {
description = "A list of security groups IDs that are available to attach to your server's endpoint. If no security groups are specified, the VPC's default security groups are automatically assigned to your endpoint. This property can only be used when endpoint_type is set to VPC."
default = []
type = list(string)
}
variable "subnet_ids" {
description = "A list of subnet IDs that are required to host your SFTP server endpoint in your VPC. This property can only be used when endpoint_type is set to VPC"
default = []
type = list(string)
}
variable "vpc_endpoint_id" {
description = "The ID of the VPC endpoint. This property can only be used when endpoint_type is set to VPC_ENDPOINT"
default = ""
}
variable "vpc_id" {
description = "The VPC ID of the virtual private cloud in which the SFTP server's endpoint will be hosted. This property can only be used when endpoint_type is set to VPC."
default = ""
}
variable "security_policy_name" {
description = "Specifies the name of the security policy that is attached to the server"
default = "TransferSecurityPolicy-2018-11"
}
variable "create_custom_hostname" {
description = "Whether to have custom hostname"
default = false
type = bool
}
variable "custom_hostname" {
description = "Custom hostname to use on transfer server"
default = ""
}