-
-
Notifications
You must be signed in to change notification settings - Fork 839
/
lifecycle.us-east-2.tfvars
174 lines (154 loc) · 4.18 KB
/
lifecycle.us-east-2.tfvars
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
region = "us-east-2"
namespace = "eg"
stage = "test"
name = "s3-lifecycle-test"
acl = "private"
lifecycle_configuration_rules = [
# Be sure to cover https://github.com/cloudposse/terraform-aws-s3-bucket/issues/137
{
abort_incomplete_multipart_upload_days = 1
enabled = true
expiration = {
days = null
expired_object_delete_marker = null
}
# test no filter
filter_and = {}
id = "nofilter"
noncurrent_version_expiration = {
newer_noncurrent_versions = 2
noncurrent_days = 30
}
noncurrent_version_transition = []
transition = [
{
days = 7
storage_class = "GLACIER"
},
]
},
{
abort_incomplete_multipart_upload_days = 1
enabled = true
expiration = {
days = null
expired_object_delete_marker = null
}
# test prefix only
filter_and = {
prefix = "prefix1"
}
id = "prefix1"
noncurrent_version_expiration = {
newer_noncurrent_versions = 2
noncurrent_days = 30
}
noncurrent_version_transition = []
transition = [
{
days = 7
storage_class = "GLACIER"
},
]
},
{
abort_incomplete_multipart_upload_days = null
enabled = true
expiration = {
days = 1461
expired_object_delete_marker = false
}
# test prefix with other filter
filter_and = {
prefix = "prefix2"
object_size_greater_than = 128 * 1024
}
id = "prefix2"
noncurrent_version_expiration = {
newer_noncurrent_versions = 2
noncurrent_days = 14
}
noncurrent_version_transition = []
transition = [
{
days = 366
storage_class = "GLACIER"
},
]
},
{
abort_incomplete_multipart_upload_days = null
enabled = true
expiration = {
days = 93
expired_object_delete_marker = false
}
# test filter without prefix
filter_and = {
object_size_greater_than = 256 * 1024
}
id = "big"
noncurrent_version_expiration = {
newer_noncurrent_versions = 2
noncurrent_days = 14
}
noncurrent_version_transition = []
transition = [
{
days = 90
storage_class = "GLACIER"
},
]
}
]
lifecycle_rules = [
{
prefix = null
enabled = true
tags = { "temp" : "true" }
enable_glacier_transition = false
enable_deeparchive_transition = false
enable_standard_ia_transition = false
enable_current_object_expiration = true
enable_noncurrent_version_expiration = true
abort_incomplete_multipart_upload_days = null
noncurrent_version_glacier_transition_days = 0
noncurrent_version_deeparchive_transition_days = 0
noncurrent_version_expiration_days = 30
standard_transition_days = 0
glacier_transition_days = 0
deeparchive_transition_days = 0
expiration_days = 1
},
{
prefix = null
enabled = true
tags = {}
enable_glacier_transition = false
enable_deeparchive_transition = true
enable_standard_ia_transition = false
enable_current_object_expiration = true
enable_noncurrent_version_expiration = true
abort_incomplete_multipart_upload_days = 1
noncurrent_version_glacier_transition_days = 0
noncurrent_version_deeparchive_transition_days = 120
noncurrent_version_expiration_days = 366
standard_transition_days = 0
glacier_transition_days = 0
deeparchive_transition_days = 366
expiration_days = 366 * 4
}
]
force_destroy = true
versioning_enabled = false
allow_encrypted_uploads_only = true
allowed_bucket_actions = [
"s3:PutObject",
"s3:PutObjectAcl",
"s3:GetObject",
"s3:DeleteObject",
"s3:ListBucket",
"s3:ListBucketMultipartUploads",
"s3:GetBucketLocation",
"s3:AbortMultipartUpload"
]