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

Enable force destroy for s3 log bucket #45

Merged

Conversation

8888
Copy link
Contributor

@8888 8888 commented Nov 19, 2022

Summary

When running terraform destroy the S3 buckets need to be empty to properly complete. Force deletion is already supported for the website bucket using website_bucket_force_destroy = true but the log bucket will still prevent destruction. The added input will allow configuration for the logging bucket to also be force deleted when it is not empty.

Changes

Notes

This is my first PR to a Terraform module, please let me know if there is anything else that would be needed for these changes. Thanks!

8888 added 2 commits November 19, 2022 15:48
Created a new variable log_bucket_force_destroy
Pass the value of this to s3_logs_bucket module
Update readme with doc changes
@jnonino jnonino added the enhancement New feature or request label Nov 21, 2022
@jnonino jnonino merged commit 48a249c into cn-terraform:main Nov 21, 2022
@8888 8888 deleted the enable_force_destroy_for_s3_log_bucket branch November 21, 2022 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants