Skip to content

Cloud CLI: Scans & code quality

Cloud CLI commands for scans & code quality (tags: #vulnerabilities #quality #sbom #iac #ci).

Index
2 items

AWS: Show ECR scan findings for an image

Safe

Vulnerability counts per severity for an image in ECR. Drop --query to see each finding.

aws ecr describe-image-scan-findings --repository-name <repo> --image-id imageTag=<tag> --query 'imageScanFindings.findingSeverityCounts'
What each part does
  1. describe-image-scan-findingsresults of the last ECR / Inspector scan
  2. --repository-name <repo>ECR repository
  3. --image-id imageTag=<tag>which image
  4. --query ...only the CRITICAL/HIGH/... counts
  • #aws
  • #patching
  • #vulnerabilities

Also known as: ecr scan results · ecr vulnerabilities · inspector findings

AWS: Rescan an image in ECR

Safe

Re-run a basic ECR scan after pushing a patched image. (Enhanced / Inspector scanning rescans on its own.)

aws ecr start-image-scan --repository-name <repo> --image-id imageTag=<tag>
What each part does
  1. start-image-scanstart a basic scan
  2. --repository-name <repo>ECR repository
  3. --image-id imageTag=<tag>which image
  • #aws
  • #patching
  • #vulnerabilities

Also known as: ecr rescan · ecr scan image

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…