forked from clouddrove/terraform-aws-sftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
106 lines (92 loc) · 2.82 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-sftp"
description = "Terraform current module repo"
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. `name`,`application`."
}
variable "attributes" {
type = list(any)
default = []
description = "Additional attributes (e.g. `1`)."
}
variable "tags" {
type = map(any)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
}
variable "managedby" {
type = string
default = "[email protected]"
description = "ManagedBy, eg 'CloudDrove'."
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `organization`, `environment`, `name` and `attributes`."
}
#Module : SFTP
#Description : Terraform sftp module variables.
variable "enable_sftp" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources."
}
variable "user_name" {
type = string
description = "User name for SFTP server."
sensitive = true
}
variable "public_key" {
type = string
default = ""
description = "Name (e.g. `ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3F6tyPEFEzV0LX3X8BsXdMsQ`)."
sensitive = true
}
variable "identity_provider_type" {
type = string
default = "SERVICE_MANAGED"
description = "The mode of authentication enabled for this service. The default value is SERVICE_MANAGED, which allows you to store and access SFTP user credentials within the service. API_GATEWAY."
}
variable "s3_bucket_id" {
type = string
description = "The landing directory (folder) for a user when they log in to the server using their SFTP client."
sensitive = true
}
variable "key_path" {
type = string
default = ""
description = "Name (e.g. `~/.ssh/id_rsa.pub`)."
sensitive = true
}
variable "sub_folder" {
type = string
default = ""
description = "Landind folder."
sensitive = true
}
variable "endpoint_type" {
type = string
default = "PUBLIC"
description = "The type of endpoint that you want your SFTP server connect to. If you connect to a VPC (or VPC_ENDPOINT), your SFTP server isn't accessible over the public internet. If you want to connect your SFTP server via public internet, set PUBLIC. Defaults to PUBLIC"
}
variable "vpc_id" {
type = string
default = ""
description = "VPC ID"
}