From cd57ab4273032c4c1f2184b75086aa3c2c1b5575 Mon Sep 17 00:00:00 2001 From: "prisma-cloud-devsecops[bot]" <89982750+prisma-cloud-devsecops[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:58:09 +0000 Subject: [PATCH] Prisma Cloud has found BC_AWS_S3_16 --- static-web-site/main.tf | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/static-web-site/main.tf b/static-web-site/main.tf index 746489e..f17a939 100644 --- a/static-web-site/main.tf +++ b/static-web-site/main.tf @@ -21,6 +21,16 @@ resource "aws_s3_bucket" "this" { } } + +resource "aws_s3_bucket_versioning" "this" { + bucket = aws_s3_bucket.this.id + + versioning_configuration { + status = "Enabled" + } +} + + resource "aws_s3_bucket_object" "this" { bucket = aws_s3_bucket.this.id key = "index.html" @@ -61,5 +71,4 @@ resource "aws_s3_bucket_policy" "this" { }, ] }) -} - +} \ No newline at end of file