-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
74 lines (64 loc) · 1.43 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
variable "lifecycle_rules" {
description = "A configuration of lifecycle rules. Details: http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html"
default = [
{
id = "log"
enabled = true
prefix = "log/"
tags = {
"rule" = "log"
"autoclean" = "true"
}
transition = [
{
days = 30
storage_class = "STANDARD_IA" # or "ONEZONE_IA"
},
{
days = 60
storage_class = "GLACIER"
},
]
expiration = [
{
days = 90
},
]
},
{
id = "tmp"
prefix = "tmp/"
enabled = true
expiration = [
{
date = "2016-01-12"
},
]
},
]
}
variable "encryption_config" {
type = "list"
description = "A configuration of server side encryption. Details: http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html"
default = [
{
rule = [
{
apply_server_side_encryption_by_default = [
{
sse_algorithm = "AES256"
},
]
},
]
},
]
}
variable "name" {
default = ""
description = "The name of the bucket, random by default"
}
variable "acl" {
default = "private"
description = "The canned ACL. Details: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl"
}