Skip to content

Commit

Permalink
Add skip to checkov validations in replica bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Galeano Galeano committed Oct 18, 2023
1 parent db071c4 commit 28fdab9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bucket_replication.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 28fdab9

Please sign in to comment.