Skip to content

Commit

Permalink
Do not disable CKV_AWS_28 completely (#304)
Browse files Browse the repository at this point in the history
This check is generally useful as a reminder to setup backups. However
the DynamoDB used by ALI is only a cache so does not need to be backed
up in this case. This change re-enables the check however disables it
for this specific instance.

Signed-off-by: Thanh Ha <[email protected]>
  • Loading branch information
zxiiro authored Nov 20, 2024
1 parent b1d0641 commit 421236e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .checkov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ skip-check:
- CKV_AWS_145
- CKV_AWS_144
- CKV2_AWS_16
- CKV_AWS_28

# Configure Checkov's log level (useful for debugging)
# log-level: DEBUG # Available options: DEBUG, INFO, WARN, ERROR
3 changes: 2 additions & 1 deletion modules/backend-state/dynamo.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
resource "aws_dynamodb_table" "terraform_state_lock" {
#checkov:skip=CKV_AWS_28:ALI uses this as a cache and does not need backup
count = data.external.terraform_state_bucket_exists.result.exists == "true" ? 0 : 1
name = "${var.dynamo_table_name}-${var.project}-${var.environment}"
read_capacity = 1
Expand All @@ -9,4 +10,4 @@ resource "aws_dynamodb_table" "terraform_state_lock" {
name = "LockID"
type = "S"
}
}
}

0 comments on commit 421236e

Please sign in to comment.