diff --git a/terraform/aws/s3.tf b/terraform/aws/s3.tf index 50649ed9d2..093dd8e7d4 100644 --- a/terraform/aws/s3.tf +++ b/terraform/aws/s3.tf @@ -21,6 +21,29 @@ resource "aws_s3_bucket" "data" { }) } +resource "aws_s3_bucket" "data" { + # bucket is public + # bucket is not encrypted + # bucket does not have access logs + # bucket does not have versioning + bucket = "${local.resource_prefix.value}-data" + acl = "public" + force_destroy = true + tags = merge({ + Name = "${local.resource_prefix.value}-data" + Environment = local.resource_prefix.value + }, { + git_commit = "d68d2897add9bc2203a5ed0632a5cdd8ff8cefb0" + git_file = "terraform/aws/s3.tf" + git_last_modified_at = "2020-06-16 14:46:24" + git_last_modified_by = "nimrodkor@gmail.com" + git_modifiers = "nimrodkor" + git_org = "bridgecrewio" + git_repo = "terragoat" + yor_trace = "0874007d-903a-4b4c-945f-c9c233e13243" + }) +} + resource "aws_s3_bucket_object" "data_object" { bucket = aws_s3_bucket.data.id key = "customer-master.xlsx"