Skip to content

Commit

Permalink
Exclude CKV2_AWS_67 to workaround checkov bug
Browse files Browse the repository at this point in the history
Works around apparent bug in checkov bridgecrewio/checkov#6294

The KMS key rotation is not configured on the aws_s3_bucket_server_side_encryption_configuration
resource so it does not make sense to check for it there. Key rotation is outside the scope
of this module.
  • Loading branch information
Sean Nixon committed May 13, 2024
1 parent 3faedfb commit 01729f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform-modules/cur-setup-destination/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resource "aws_s3_bucket" "this" {
}

resource "aws_s3_bucket_server_side_encryption_configuration" "this" {
# checkov:skip=CKV2_AWS_67:KMS Key rotation is not in scope for this module as we do not create the key
bucket = aws_s3_bucket.this.bucket
rule {
apply_server_side_encryption_by_default {
Expand Down
1 change: 1 addition & 0 deletions terraform-modules/cur-setup-source/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ resource "aws_s3_bucket" "this" {
}

resource "aws_s3_bucket_server_side_encryption_configuration" "this" {
# checkov:skip=CKV2_AWS_67:KMS Key rotation is not in scope for this module as we do not create the key
bucket = aws_s3_bucket.this.bucket
rule {
apply_server_side_encryption_by_default {
Expand Down

0 comments on commit 01729f7

Please sign in to comment.