Skip to content

feat: add transition_default_minimum_object_size#274

Open
jjurzyn (jjurzyn) wants to merge 2 commits into
cloudposse:mainfrom
jjurzyn:main
Open

feat: add transition_default_minimum_object_size#274
jjurzyn (jjurzyn) wants to merge 2 commits into
cloudposse:mainfrom
jjurzyn:main

Conversation

@jjurzyn

Copy link
Copy Markdown

what

why

  • In September 2024 Amazon S3 updated the default transition behavior for small objects that prevents objects smaller than 128 KB from being transitioned to any storage class.
  • All lifecycle rules created before September 2024 have default transition behavior set to varies_by_storage_class.
  • Currently, the module doesn't support changing it to the previous default value.

terraform plan wants to modify lifecycle configuration as follows:

# module.s3.aws_s3_bucket_lifecycle_configuration.default[0] will be updated in-place
! resource "aws_s3_bucket_lifecycle_configuration" "default" {
        id                                     = <name>
!       transition_default_minimum_object_size = "varies_by_storage_class" -> "all_storage_classes_128K"
        # (1 unchanged attribute hidden)

        # (1 unchanged block hidden)
    }

references

@jjurzyn

Copy link
Copy Markdown
Author

Fixes #267

@oycyc

Copy link
Copy Markdown

/terratest

@mergify

mergify Bot commented Jun 11, 2025

Copy link
Copy Markdown

💥 This pull request now has conflicts. Could you fix it @jjuinfare? 🙏

@mergify mergify Bot added the conflict This PR has conflicts label Jun 11, 2025
@sht

Copy link
Copy Markdown

Can somebody please resolve the conflicts and merge this? I need this feature 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflict This PR has conflicts triage Needs triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants