Skip to content
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

Fix S3 lifecycle configuration #1673

Merged
merged 8 commits into from
May 21, 2024
Merged

Fix S3 lifecycle configuration #1673

merged 8 commits into from
May 21, 2024

Conversation

markdboyd
Copy link
Contributor

@markdboyd markdboyd commented May 20, 2024

Changes proposed in this pull request:

Follow-up to #1670 to only conditionally create S3 lifecycle blocks when a value is set for expiration, since these configurations currently only provide expiration rules and at least 1 rule is required for a configuration to be set.

Also, for convenience, this PR adds a pre-commit Git hook that will automatically run the Terraform code formatter on every commit, which means that once enabled, this Git hook should ensure that the Terraform formatting checker in CI never fails. To install the Git hooks, use the make command:

make add-githooks

security considerations

None, just refactoring Terraform to make dynamic behavior work correctly

@markdboyd markdboyd requested a review from a team May 20, 2024 20:42
@soutenniza soutenniza merged commit 13fffa2 into main May 21, 2024
3 checks passed
@soutenniza soutenniza deleted the fix-s3-lifecycle branch May 21, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants