cn-terraform / terraform-aws-s3-static-website

Terraform Module for AWS to host Static Website on S3
https://registry.terraform.io/modules/cn-terraform/s3-static-website/aws
Apache License 2.0
20 stars 33 forks source link

Enable force destroy for s3 log bucket #45

Closed 8888 closed 1 year ago

8888 commented 1 year ago

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!