generated from rhythmictech/terraform-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
113 lines (94 loc) · 3.16 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
########################################
# General Vars
########################################
variable "additional_tags" {
default = {}
description = "User-Defined tags"
type = map(string)
}
variable "create" {
default = true
description = "If `false`, this module does nothing"
type = bool
}
variable "name" {
default = null
description = "Moniker to apply/prefix to all resources in the module (required if `create==true`)"
type = string
}
variable "efs_kms_key_id" {
default = null
description = "ARN of KMS key to use for EFS encryption (leave null to create a key, set to `aws/backup` to use AWS default CMK)"
type = string
}
variable "performance_mode" {
default = "generalPurpose"
description = "Performance mode to run in (`generalPurpose` or `maxIO`). See https://aws.amazon.com/premiumsupport/knowledge-center/linux-efs-performance-modes/ for details."
type = string
}
variable "provisioned_throughput" {
default = null
description = "Provisioned throughput (in mbps)"
type = number
}
variable "throughput_mode" {
default = "bursting"
description = "EFS file system throughput mode (`provisioned` or `bursting`)"
type = string
}
########################################
# Networking Vars
########################################
variable "allowed_cidrs" {
default = []
description = "List of CIDRs permitted to access EFS mounts"
type = list(string)
}
variable "allowed_security_groups" {
default = []
description = "List of Security Group IDs permitted to access EFS mounts"
type = list(string)
}
variable "subnets" {
default = []
description = "Subnet IDs that the EFS mount points should be created on (required if `create==true`)"
type = list(string)
}
variable "vpc_id" {
default = null
description = "VPC to create EFS file system in (required if `create==true`)"
type = string
}
########################################
# Backup Vars
########################################
variable "backup_kms_key_id" {
default = null
description = "KMS Key to use for backups (Specify `aws/backup` to use the default key, leave null to have a key generated automatically)"
type = string
}
variable "backup_schedule" {
default = "cron(0 0 * * ? *)"
description = "Cron schedule to run backups on"
type = string
}
variable "enable_backups" {
default = true
description = "Should AWS Backup be configured for this file system?"
type = bool
}
variable "backup_role_permissions_boundary" {
default = null
description = "An optional IAM permissions boundary to use when creating the IAM role for backups"
type = string
}
variable "backup_lifecycle_delete_after" {
default = null
description = "Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than cold_storage_after."
type = number
}
variable "backup_lifecycle_cold_storage_after" {
default = null
description = "Specifies the number of days after creation that a recovery point is moved to cold storage."
type = number
}