-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
212 lines (178 loc) · 5.69 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Solution name, e.g. `app`"
}
variable "environment" {
type = string
default = "test"
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "label order, e.g. `name`,`application`"
}
variable "managedby" {
type = string
default = "hello@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove'."
}
# Module : EFS
# Description : Terraform EFS module variables.
variable "security_groups" {
type = list(string)
sensitive = true
description = "Security group IDs to allow access to the EFS"
}
variable "from_port" {
type = number
default = 2049
description = "Security group IDs to allow access to the EFS"
}
variable "to_port" {
type = number
default = 2049
description = "Security group IDs to allow access to the EFS"
}
variable "egress_from_port" {
type = number
default = 0
description = "Security group IDs to allow access to the EFS"
}
variable "egress_to_port" {
type = number
default = 0
description = "Security group IDs to allow access to the EFS"
}
variable "protocol" {
type = string
default = "tcp"
description = "Security group IDs to allow access to the EFS"
}
variable "egress_protocol" {
type = number
default = -1
description = "Security group IDs to allow access to the EFS"
}
variable "egress_cidr_blocks" {
type = list(string)
default = ["0.0.0.0/0"]
description = "Security group IDs to allow access to the EFS"
}
variable "efs_enabled" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources"
}
variable "replication_enabled" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources"
}
variable "creation_token" {
type = string
description = "A unique name (a maximum of 64 characters are allowed) used as reference when creating the EFS"
}
variable "vpc_id" {
type = string
sensitive = true
description = "VPC ID"
}
variable "subnets" {
type = list(string)
sensitive = true
description = "Subnet IDs"
}
variable "availability_zones" {
type = list(string)
sensitive = true
description = "Availability Zone IDs"
}
variable "encrypted" {
type = bool
default = true
description = "If true, the file system will be encrypted"
}
variable "performance_mode" {
type = string
default = "generalPurpose"
description = "The file system performance mode. Can be either `generalPurpose` or `maxIO`"
}
variable "provisioned_throughput_in_mibps" {
type = string
default = 0
description = "The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with `throughput_mode` set to provisioned"
}
variable "throughput_mode" {
type = string
default = "bursting"
description = "Throughput mode for the file system. Defaults to bursting. Valid values: `bursting`, `provisioned`. When using `provisioned`, also set `provisioned_throughput_in_mibps`"
}
variable "mount_target_ip_address" {
type = string
default = null
sensitive = true
description = "The address (within the address range of the specified subnet) at which the file system may be mounted via the mount target"
}
variable "kms_key_id" {
type = string
default = ""
sensitive = true
description = "The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true."
}
variable "efs_backup_policy_enabled" {
type = bool
default = true
description = "If `true`, it will turn on automatic backups."
}
variable "allow_cidr" {
type = list(any)
default = []
description = "Provide allowed cidr to efs"
}
variable "access_point_enabled" {
type = bool
default = true
}
variable "mount_target_description" {
type = string
default = "this is mount target security group "
}
variable "bypass_policy_lockout_safety_check" {
description = "A flag to indicate whether to bypass the `aws_efs_file_system_policy` lockout safety check. Defaults to `false`"
type = bool
default = false
}
variable "enable_aws_efs_file_system_policy" {
description = "A flag to enable or disable aws efs file system policy . Defaults to `false`"
type = bool
default = false
}
variable "replication_configuration_destination" {
description = "A destination configuration block"
type = any
default = {}
}
variable "source_policy_documents" {
description = "List of IAM policy documents that are merged together into the exported document. Statements must have unique `sid`s"
type = list(string)
default = []
}
variable "override_policy_documents" {
description = "List of IAM policy documents that are merged together into the exported document. In merging, statements with non-blank `sid`s will override statements with the same `sid`"
type = list(string)
default = []
}
variable "policy_statements" {
description = "A list of IAM policy [statements](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document#statement) for custom permission usage"
type = any
default = []
}
variable "deny_nonsecure_transport" {
description = "Determines whether `aws:SecureTransport` is required when connecting to elastic file system"
type = bool
default = false
}