From a83ec8c66cd42def42f39b1083df79cca800e985 Mon Sep 17 00:00:00 2001 From: "bridgecrew[bot]" <60663194+bridgecrew[bot]@users.noreply.github.com> Date: Wed, 6 Jul 2022 22:26:00 +0000 Subject: [PATCH] Bridgecrew has found BC_AWS_S3_13 --- terraform/aws/s3.tf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/terraform/aws/s3.tf b/terraform/aws/s3.tf index eacc83d46f..cbdfa2ae86 100644 --- a/terraform/aws/s3.tf +++ b/terraform/aws/s3.tf @@ -23,6 +23,19 @@ resource "aws_s3_bucket" "data" { } } + +resource "aws_s3_bucket" "data_log_bucket" { + bucket = "data-log-bucket" +} + +resource "aws_s3_bucket_logging" "data" { + bucket = aws_s3_bucket.data.id + + target_bucket = aws_s3_bucket.data_log_bucket.id + target_prefix = "log/" +} + + resource "aws_s3_bucket_object" "data_object" { bucket = aws_s3_bucket.data.id key = "customer-master.xlsx"