Interview Prep/AWS/ECS, EKS, Lambda and ECR

Design a CI/CD supply chain for images: scan, sign, and enforce at deploy.

AdvancedScenarioECS, EKS, Lambda and ECR
Answer

Situation read → Security gates in the pipeline plus admission enforcement.

What I'd do →

  1. Build with BuildKit, push to ECR with immutable digest
  2. Scan with ECR enhanced scanning (Inspector) and fail on Critical
  3. Sign with Cosign or AWS Signer
  4. Admission policy (Kyverno or Gatekeeper) verifies signatures and allows only the org ECR
  5. Deploy by digest not tag

Why → Digest pinning plus signature verification stops tag-swap attacks.

Interview tip → Mention SBOM generation.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on ECS, EKS, Lambda and ECR