repository#

Exec module for managing Amazon ECR repositories.

async idem_aws.exec.aws.ecr.repository.get(hub, ctx, name: str, resource_id: str, registry_id: str = None) Dict[str, Any][source]#

Retrieves an image repository in a registry.

Parameters:
  • name (str) – An Idem name of the resource.

  • resource_id (str) – The name of the ECR repository in Amazon Web Services.

  • registry_id (str, Optional) – The Amazon Web Services account ID associated with the registry that contains the repository to search. If you do not specify a registry, the default registry is assumed.

Returns:

Return image repository in a given registry.

Return type:

Dict[str, Any]

Examples

Calling this exec module function from the cli:

idem exec aws.ecr.repository.get name='idem_name' resource_id='ecr_repository_name'

Calling this exec module function from within a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.ecr.repository.get
    - kwargs:
        name: 'idem_name'
        resource_id: 'ecr_repository_name'
async idem_aws.exec.aws.ecr.repository.list_(hub, ctx, registry_id: str = None, repository_names: List[str] = None) Dict[str, Any][source]#

Retrieves image repositories in a registry.

Parameters:
  • registry_id (str, Optional) – The Amazon Web Services account ID associated with the registry that contains the repositories to be described. If you do not specify a registry, the default registry is assumed.

  • repository_names (list[str], Optional) – A list of repositories to describe.

Returns:

Return image repositories in a given registry.

Return type:

Dict[str, Any]

Examples

Calling this exec module function from the cli:

idem exec aws.ecr.repository.list

Calling this exec module function with repository name from the cli:

idem exec aws.ecr.repository.list repository_names=['repository_name_01', 'repository_name_02']

Calling this exec module function from within a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.ecr.repository.list