main.tf 424 B

12345678910111213141516171819
  1. module "s3logging-bucket" {
  2. source = "../.."
  3. bucket_suffix = "system"
  4. # store logs for 1 year
  5. lifecycle_rules = [{
  6. id = "expire"
  7. enabled = true
  8. prefix = null
  9. expiration = 365
  10. noncurrent_version_expiration = 365
  11. }]
  12. tags = {
  13. terraform_managed = true
  14. owner = "IT Operations"
  15. }
  16. }