204204
205205module "logs_bucket" {
206206 source = " cloudposse/s3-bucket/aws"
207- version = " 0.40.1 "
207+ version = " 3.1.2 "
208208
209209 enabled = local. logs_bucket_enabled
210210 context = module. logs_label . context
@@ -220,28 +220,40 @@ module "logs_bucket" {
220220 user_enabled = false
221221 versioning_enabled = true
222222
223- lifecycle_rules = [
224- {
225- prefix = null
226- enabled = true
227- tags = {}
228-
229- enable_glacier_transition = true
230- enable_deeparchive_transition = false
231- enable_standard_ia_transition = false
232- enable_current_object_expiration = false
233-
234- abort_incomplete_multipart_upload_days = null
235- noncurrent_version_glacier_transition_days = 30
236- noncurrent_version_deeparchive_transition_days = 0
237- noncurrent_version_expiration_days = 365
238-
239- standard_transition_days = 30
240- glacier_transition_days = 90
241- deeparchive_transition_days = 0
242- expiration_days = 0
243- },
244- ]
223+ lifecycle_configuration_rules = [{
224+ enabled = true
225+ id = module.logs_label.id
226+ abort_incomplete_multipart_upload_days = 90
227+ filter_and = null
228+
229+ expiration = {
230+ days = 0
231+ }
232+ noncurrent_version_expiration = {
233+ noncurrent_days = 365
234+ }
235+ noncurrent_version_transition = [{
236+ noncurrent_days = 30
237+ storage_class = " GLACIER"
238+ },
239+ {
240+ noncurrent_days = 0
241+ storage_class = " DEEP_ARCHIVE"
242+ }]
243+ transition = [{
244+ days = 30
245+ storage_class = " STANDARD_IA"
246+ },
247+ {
248+ days = 90
249+ storage_class = " GLACIER"
250+ },
251+ {
252+ days = 0
253+ storage_class = " DEEP_ARCHIVE"
254+
255+ }]
256+ }]
245257}
246258
247259resource "aws_cloudwatch_log_group" "session_logging" {
0 commit comments