-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables_s3.tf
56 lines (46 loc) · 1.29 KB
/
variables_s3.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
variable "s3_bucket_name" {
description = "Name of the S3 bucket"
default = ""
}
variable "s3_versioning_enabled" {
description = "To enable file versioning"
default = false
}
variable "lifecycle_rule_enabled" {
description = "To enable the lifecycle rule"
default = false
}
variable "lifecycle_rule_id" {
description = "Name of the lifecyle rule id."
default = ""
}
variable "lifecycle_rule_prefix" {
description = "Lifecycle rule prefix."
default = ""
}
variable "lifecycle_rule_expiration" {
description = "Delete current object version X days after creation"
default = 0
}
variable "lifecycle_rule_noncurrent_version_expiration" {
description = "Delete noncurrent object versions X days after creation"
default = 90
}
variable "s3_lifecycle_prevent_destroy" {
description = "Prevent/allow terraform to destroy the bucket"
default = false
}
variable "enable_kms_bucket_policy" {
description = "Disables unencrypted uploads, enables user uploads with KMS keys"
default = false
}
variable "lifecycle_config_rule_id" {
description = "ID of the lifecycle configuration rule"
default = ""
type = string
}
variable "tags" {
description = "Tags to be added to the bucket"
type = map(string)
default = {}
}