Skip to content

feat: add transition_default_minimum_object_size #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jjuinfare
Copy link

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

@jjuinfare jjuinfare requested review from a team as code owners May 12, 2025 16:29
@mergify mergify bot added the triage Needs triage label May 12, 2025
@jjuinfare
Copy link
Author

Fixes #267

@oycyc
Copy link

oycyc commented May 14, 2025

/terratest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants