capabilities.work

Ensure Repository and Seed Image

A 4-step recipe with Amazon ECR. We can help you get access.

Recipe · 4 steps

Ensure Repository and Seed Image

Create a repository only if absent, then put and verify a seed image.

  1. Describe the registry for the target repository to decide whether it must be created.
  2. Create the repository when the lookup found no existing repository.
  3. Put the seed image manifest and tag into the ensured repository.
  4. Read the seeded image back through BatchGetImage to confirm the manifest was stored under the supplied tag.
What you'll need to have ready
  • repositoryName: The repository to ensure and seed.
  • imageManifest: The image manifest corresponding to the seed image.
  • imageManifestMediaType: The media type of the image manifest.
  • imageTag: The tag to associate with the seed image.
For your developer

Arazzo workflow amazon-ecr:ensure-repository-and-seed-image, 4 operations: DescribeRepositories → CreateRepository → PutImage → BatchGetImage. Specs on APIs.io.