Interview Prep/DevSecOps/Container image and IaC scanning

Checkov `CKV_AWS_144` (cross-region replication) fails on a dev S3 bucket where it makes no sense

BeginnerTroubleshootingContainer image and IaC scanning
Answer

Likely causes → Default policies apply everywhere and do not know environment context.

Diagnose → checkov -f s3.tf --check CKV_AWS_144

Fix → Suppress inline with justification:

resource "aws_s3_bucket" "dev_scratch" {
  # checkov:skip=CKV_AWS_144:Dev scratch bucket, no DR requirement
  bucket = "acme-dev-scratch"
}

Or a per-directory .checkov.yaml with skip-check for envs/dev.

Prevent → Keep skip lists per environment in config, reviewed by security, not ad hoc.

All DevSecOps questions

More on Container image and IaC scanning