Skip to content

Commit 00a057a

Browse files
committed
feat: bump 'logs_bucket' module version
1 parent c2f229a commit 00a057a

File tree

3 files changed

+39
-27
lines changed

3 files changed

+39
-27
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,23 @@ Use [the awesome `gossm` project](https://github.com/gjbae1212/gossm).
6868
| Name | Version |
6969
|------|---------|
7070
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
71-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
71+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
7272
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.2 |
7373
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.0 |
7474

7575
## Providers
7676

7777
| Name | Version |
7878
|------|---------|
79-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.51.0 |
79+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
8080

8181
## Modules
8282

8383
| Name | Source | Version |
8484
|------|--------|---------|
8585
| <a name="module_asg_label"></a> [asg\_label](#module\_asg\_label) | cloudposse/label/null | 0.25.0 |
8686
| <a name="module_kms_key"></a> [kms\_key](#module\_kms\_key) | cloudposse/kms-key/aws | 0.12.1 |
87-
| <a name="module_logs_bucket"></a> [logs\_bucket](#module\_logs\_bucket) | cloudposse/s3-bucket/aws | 0.40.1 |
87+
| <a name="module_logs_bucket"></a> [logs\_bucket](#module\_logs\_bucket) | cloudposse/s3-bucket/aws | 3.1.2 |
8888
| <a name="module_logs_label"></a> [logs\_label](#module\_logs\_label) | cloudposse/label/null | 0.25.0 |
8989
| <a name="module_role_label"></a> [role\_label](#module\_role\_label) | cloudposse/label/null | 0.25.0 |
9090
| <a name="module_this"></a> [this](#module\_this) | cloudposse/label/null | 0.25.0 |

main.tf

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ DOC
204204

205205
module "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

247259
resource "aws_cloudwatch_log_group" "session_logging" {

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_version = ">= 0.13.0"
33

44
required_providers {
5-
aws = ">= 3.0"
5+
aws = ">= 4.0"
66
local = ">= 1.2"
77
null = ">= 2.0"
88
}

0 commit comments

Comments
 (0)