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 →
- Build with BuildKit, push to ECR with immutable digest
- Scan with ECR enhanced scanning (Inspector) and fail on Critical
- Sign with Cosign or AWS Signer
- Admission policy (Kyverno or Gatekeeper) verifies signatures and allows only the org ECR
- Deploy by digest not tag
Why → Digest pinning plus signature verification stops tag-swap attacks.
Interview tip → Mention SBOM generation.
More on ECS, EKS, Lambda and ECR
ECS on Fargate or on EC2: how do you choose?BeginnerDeploy a containerized API on ECS behind an ALB. What are the building blocks?BeginnerAn ECS service deployment is stuck, tasks start and stop repeatedly. How do you debug?IntermediateRoll out a new ECS service version with canary and automatic rollback.IntermediateEKS pods need access to S3 without node-level permissions. How?IntermediateUpgrade an EKS cluster from 1.31 to 1.33 safely.Intermediate