Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orf/ecr-dump
https://github.com/orf/ecr-dump
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/orf/ecr-dump
- Owner: orf
- Created: 2024-08-01T09:13:29.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-07T12:16:01.000Z (about 1 month ago)
- Last Synced: 2024-10-07T22:46:17.992Z (about 1 month ago)
- Language: Rust
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ecr-dump
A small tool to dump all image manifests from ECR.
```shell
$ 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:
```json
{
"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
}
]
}
}
]
}
```