From c120b7c9a493ac4fa26da342bd9b61186fe87089 Mon Sep 17 00:00:00 2001 From: githubjianli <51385385+githubjianli@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:13:55 -0800 Subject: [PATCH] feat: update bucket acl update bucket acl to match with aws provide 4.x --- s3-other.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/s3-other.tf b/s3-other.tf index 8e1a70f..835f880 100644 --- a/s3-other.tf +++ b/s3-other.tf @@ -93,6 +93,12 @@ resource "aws_s3_bucket_ownership_controls" "apiary_inventory_bucket" { } } +resource "aws_s3_bucket_acl" "apiary_inventory_bucket" { + depends_on = [aws_s3_bucket_ownership_controls.apiary_inventory_bucket] + bucket = aws_s3_bucket.apiary_inventory_bucket.id + acl = "private" +} + resource "aws_s3_bucket" "apiary_managed_logs_bucket" { count = local.enable_apiary_s3_log_management ? 1 : 0 bucket = local.apiary_s3_logs_bucket