Crates.io | ecr-dump |
lib.rs | ecr-dump |
version | 0.2.0 |
source | src |
created_at | 2024-09-06 16:38:13.473016 |
updated_at | 2024-09-06 17:38:31.676615 |
description | Dump all ECR image manifests locally |
homepage | |
repository | https://github.com/orf/ecr-dump/ |
max_upload_size | |
id | 1366140 |
size | 86,359 |
A small tool to dump all image manifests from ECR.
$ export AWS_PROFILE=... AWS_REGION=...
$ ./ecr-dump images.jsonl --exclude='foo/*'
This will output the manifests and layers for all images in all ECR repositories:
{
"image": {
"repository_name": "foo/bar",
"manifest_digest": "sha256:4ead720f67f34e4a430f4099d3f108cbf2324aaa53253fd1f0763add8f8158b0",
"manifest_type": "Image",
"image_tags": [
"latest"
],
"image_pushed_at": "2023-10-02T09:54:16Z"
},
"manifests": [
{
"content": {
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"digest": "sha256:7473ca8183c19cbe756821945a727a2ed38470046ececc6d9a942602430d9789",
"size": 12449
},
"layers": [
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"digest": "sha256:7dbc1adf280e1aa588c033eaa746aa6db327ee16be705740f81741f5e6945c86",
"size": 31417711
}
]
}
}
]
}