Difference between revisions of "Aws ecr describe-images"
Jump to navigation
Jump to search
(→2024) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
* https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/describe-images.html | * https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/describe-images.html | ||
− | |||
for REPOS in `[[aws ecr describe-repositories]] --output text | awk '{print $6}' | grep .`; do aws ecr describe-images --repository-name $REPOS; done | for REPOS in `[[aws ecr describe-repositories]] --output text | awk '{print $6}' | grep .`; do aws ecr describe-images --repository-name $REPOS; done | ||
Line 10: | Line 9: | ||
== Examples == | == Examples == | ||
− | Official example | + | === 2024 example === |
+ | |||
+ | { | ||
+ | "imageDetails": [ | ||
+ | { | ||
+ | "registryId": "12323131231", | ||
+ | "repositoryName": "your-app", | ||
+ | "imageDigest": "sha256:2171f5422f7ddXXXXXXXXX", | ||
+ | "imageTags": [ | ||
+ | "58e26d3aXXX" | ||
+ | ], | ||
+ | "imageSizeInBytes": 178207139, | ||
+ | "imagePushedAt": "2024-02-16T14:30:58+01:00", | ||
+ | "imageScanStatus": { | ||
+ | "status": "COMPLETE", | ||
+ | "description": "The scan was completed successfully." | ||
+ | }, | ||
+ | "[[imageScanFindingsSummary]]": { | ||
+ | "imageScanCompletedAt": "2024-02-16T14:31:08+01:00", | ||
+ | "vulnerabilitySourceUpdatedAt": "2024-02-16T03:41:16+01:00", | ||
+ | "findingSeverityCounts": { | ||
+ | "HIGH": 15, | ||
+ | "MEDIUM": 41, | ||
+ | "INFORMATIONAL": 124, | ||
+ | "LOW": 4, | ||
+ | "[[CRITICAL]]": 1, | ||
+ | "UNDEFINED": 9 | ||
+ | } | ||
+ | }, | ||
+ | "imageManifestMediaType": "application/vnd.docker.distribution.manifest.v2+json", | ||
+ | "artifactMediaType": "application/vnd.docker.container.image.v1+json" | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | |||
+ | === Official example === | ||
<pre> | <pre> | ||
{ | { | ||
Line 45: | Line 79: | ||
== Related == | == Related == | ||
* <code>[[aws ecr describe-image-scan-findings]]</code> | * <code>[[aws ecr describe-image-scan-findings]]</code> | ||
+ | * <code>[[aws ecr list-images]]</code> | ||
== See also == | == See also == |
Latest revision as of 19:56, 22 February 2024
for REPOS in `aws ecr describe-repositories --output text | awk '{print $6}' | grep .`; do aws ecr describe-images --repository-name $REPOS; done
for REPOS in `aws ecr describe-repositories --output text | awk '{print $6}' | grep .`; do aws ecr describe-images --repository-name $REPOS --output text; done
for REPOS in `aws ecr describe-repositories --output text | awk '{print $6}' | grep .`; do aws ecr describe-images --repository-name $REPOS; done | grep imageDigest
Examples[edit]
2024 example[edit]
{ "imageDetails": [ { "registryId": "12323131231", "repositoryName": "your-app", "imageDigest": "sha256:2171f5422f7ddXXXXXXXXX", "imageTags": [ "58e26d3aXXX" ], "imageSizeInBytes": 178207139, "imagePushedAt": "2024-02-16T14:30:58+01:00", "imageScanStatus": { "status": "COMPLETE", "description": "The scan was completed successfully." }, "imageScanFindingsSummary": { "imageScanCompletedAt": "2024-02-16T14:31:08+01:00", "vulnerabilitySourceUpdatedAt": "2024-02-16T03:41:16+01:00", "findingSeverityCounts": { "HIGH": 15, "MEDIUM": 41, "INFORMATIONAL": 124, "LOW": 4, "CRITICAL": 1, "UNDEFINED": 9 } }, "imageManifestMediaType": "application/vnd.docker.distribution.manifest.v2+json", "artifactMediaType": "application/vnd.docker.container.image.v1+json" } ] }
Official example[edit]
{ "imageDetails": [ { "registryId": "012345678910", "repositoryName": "cluster-autoscaler", "imageDigest": "sha256:4a1c6567c38904384ebc64e35b7eeddd8451110c299e3368d2210066487d97e5", "imageTags": [ "v1.13.6" ], "imageSizeInBytes": 48318255, "imagePushedAt": 1565128275.0 } ] }
{ "registryId": "012345678910", "repositoryName": "test-example", "imageDigest": "sha256:71110833270d9e9cf7c70ad79cfed91daf2fef9c299e3368d2210066487d97e5", "imageTags": [ "68d06c84" ], "imageSizeInBytes": 372421825, "imagePushedAt": "2021-06-10T05:48:04-07:00", "imageManifestMediaType": "application/vnd.docker.distribution.manifest.v2+json", "[[artifactMediaType]]": "application/vnd.docker.container.image.v1+json" }
Related[edit]
See also[edit]
Advertising: