From 28fdab9c410db53afa019cd994bb38c0677bd7d9 Mon Sep 17 00:00:00 2001 From: Martin Galeano Galeano Date: Wed, 18 Oct 2023 09:27:12 -0300 Subject: [PATCH] Add skip to checkov validations in replica bucket --- bucket_replication.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bucket_replication.tf b/bucket_replication.tf index 9a5398d..c49b4a4 100644 --- a/bucket_replication.tf +++ b/bucket_replication.tf @@ -4,6 +4,15 @@ resource "aws_s3_bucket" "replication_bucket" { # checkov:skip=CKV2_AWS_62:False Positive. This bucket is the replication destination # checkov:skip=CKV_AWS_144:False Positive. This bucket is the replication destination + ## Since we use the attribute 'count' to create an aws_s3_bucket, checkov has a known issue that results in + ## an error even though we are using the correct configurations. (Ref https://github.com/bridgecrewio/checkov/issues/3847) + # checkov:skip=CKV2_AWS_65:Skip due to above comment + # checkov:skip=CKV2_AWS_61:Skip due to above comment + # checkov:skip=CKV_AWS_145:Skip due to above comment + # checkov:skip=CKV2_AWS_64:Skip due to above comment + # checkov:skip=CKV_AWS_21:Skip due to above comment + # checkov:skip=CKV2_AWS_6:Skip due to above comment + provider = aws.secondary bucket = format("%s-%s-%s-%s", var.namespace, var.stage, var.name, var.bucket_replication_name)