-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
112 lines (96 loc) · 3.02 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
variable "name" {
type = string
description = "The name of the EFS file system. All associated resources' names will also be prefixed by this value"
}
variable "access_points" {
type = map(object({
additional_tags = optional(map(string), {})
posix_user = optional(object({
group_id = number
user_id = number
secondary_group_ids = optional(list(number))
}))
root_directory_creation_permissions = optional(object({
access_point_permissions = string
owner_group_id = number
owner_user_id = number
}))
root_directory_path = optional(string, "/")
}))
description = "Configures access points."
default = {}
}
variable "additional_tags" {
type = map(string)
description = "Additional tags for the EFS instance"
default = {}
}
variable "additional_tags_all" {
type = map(string)
description = "Additional tags for all resources in deployed with this module"
default = {}
}
variable "availability_zone" {
type = string
description = "the AWS Availability Zone in which to create the file system. Used to create a file system that uses One Zone storage classes."
default = null
}
variable "enable_automatic_backup" {
type = bool
description = "Automatically backup your file system data with AWS Backup using recommended settings."
default = true
}
variable "encryption" {
type = object({
enabled = bool
kms_key_id = optional(string)
})
description = "Configures encryption at rest."
default = {
enabled = true
}
}
variable "file_system_policy" {
type = string
description = "The JSON formatted file system policy for the EFS file system"
default = null
}
variable "lifecycle_policy" {
type = object({
transition_to_infrequent_access = optional(string)
transition_to_primary_storage_class = optional(string)
})
description = "Configures lifecycle policy."
default = null
}
variable "mount_targets" {
type = map(object({
security_group_ids = list(string)
ip_address = optional(string)
}))
description = "Configures mount targets"
default = {}
}
variable "performance_mode" {
type = string
description = "Performance mode for the file system. Valid values: generalPurpose, maxIO. maxIO only applicable to provisioned, and bursting"
default = "generalPurpose"
}
variable "provisioned_throughput" {
type = number
description = "The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with throughput_mode set to provisioned"
default = null
}
variable "replications" {
type = map(object({
availability_zone = optional(string)
kms_key_id = optional(string)
}))
description = "Configures replications"
default = {}
}
variable "throughput_mode" {
type = string
description = "Throughput mode for the file system. Valid values: bursting, provisioned, or elastic"
default = "elastic"
}