Amazon ECR · Arazzo Workflow

Amazon ECR Registry Audit

Version 1.0.0

Page through every repository in a registry following the DescribeRepositories token loop.

1 workflow 1 source API 1 provider
View Spec View on GitHub Amazon Web ServicesContainer ImagesContainer RegistryContainersDockerECROCIArazzoWorkflows

Provider

amazon-ecr

Workflows

registry-audit
Enumerate every repository in a registry by walking the pagination loop.
Describes the first page of repositories and then loops on the nextToken pagination cursor until all repositories in the registry have been read.
2 steps inputs: maxResults, registryId outputs: firstPageRepositories, nextPageRepositories
1
describeFirstPage
Describe the first page of repositories in the registry.
2
describeNextPage
Request the next page of repositories using the pagination token from the previous response, looping until no token remains.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon ECR Registry Audit
  summary: Page through every repository in a registry following the DescribeRepositories token loop.
  description: >-
    Audits an entire Amazon ECR registry by describing all of its repositories
    and following the nextToken pagination loop until every page has been read.
    The flow requests the first page of repositories, then branches on the
    presence of a pagination token to keep requesting subsequent pages until the
    registry has been fully enumerated. Every step spells out its AWS JSON
    request inline, including the documented X-Amz-Target header, so the flow can
    be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: describerepositoriesApi
  url: ../openapi/amazon-ecr-describerepositories-api-openapi.yml
  type: openapi
workflows:
- workflowId: registry-audit
  summary: Enumerate every repository in a registry by walking the pagination loop.
  description: >-
    Describes the first page of repositories and then loops on the nextToken
    pagination cursor until all repositories in the registry have been read.
  inputs:
    type: object
    properties:
      registryId:
        type: string
        description: The AWS account ID associated with the registry to audit.
      maxResults:
        type: integer
        description: The maximum number of repository results per page.
  steps:
  - stepId: describeFirstPage
    description: >-
      Describe the first page of repositories in the registry.
    operationId: describeRepositories
    parameters:
    - name: X-Amz-Target
      in: header
      value: AmazonEC2ContainerRegistry_V20150921.DescribeRepositories
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        registryId: $inputs.registryId
        maxResults: $inputs.maxResults
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      repositories: $response.body#/repositories
      nextToken: $response.body#/nextToken
    onSuccess:
    - name: morePages
      type: goto
      stepId: describeNextPage
      criteria:
      - context: $response.body
        condition: $.nextToken != null
        type: jsonpath
    - name: complete
      type: end
      criteria:
      - context: $response.body
        condition: $.nextToken == null
        type: jsonpath
  - stepId: describeNextPage
    description: >-
      Request the next page of repositories using the pagination token from the
      previous response, looping until no token remains.
    operationId: describeRepositories
    parameters:
    - name: X-Amz-Target
      in: header
      value: AmazonEC2ContainerRegistry_V20150921.DescribeRepositories
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        registryId: $inputs.registryId
        maxResults: $inputs.maxResults
        nextToken: $steps.describeFirstPage.outputs.nextToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      repositories: $response.body#/repositories
      nextToken: $response.body#/nextToken
    onSuccess:
    - name: stillMorePages
      type: goto
      stepId: describeNextPage
      criteria:
      - context: $response.body
        condition: $.nextToken != null
        type: jsonpath
  outputs:
    firstPageRepositories: $steps.describeFirstPage.outputs.repositories
    nextPageRepositories: $steps.describeNextPage.outputs.repositories

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/amazon-ecr-registry-audit-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.