image#
Exec module for managing Amazon ECR Images.
- async idem_aws.exec.aws.ecr.image.get(hub, ctx, name: str, repository_name: str, registry_id: str = None, image_digest: str = None, image_tag: str = None) Dict[str, Any] [source]#
Retrieves the specified AWS ECR Image details.
- Parameters:
name (str) – The name of the Idem state.
repository_name (str) – The name of repository that contains the image.
registry_id (str, Optional) – The Amazon Web Services account ID associated with the registry that contains the repository that contains the images. If you do not specify a registry, the default registry is assumed.
image_digest (str, Optional) – The sha256 digest of the image manifest. Either image_digest or image_tag has to be provided.
image_tag (str, Optional) – The tag used for the image. Either image_digest or image_tag has to be provided.
Examples
Calling this exec module function from the cli:
idem exec aws.ecr.image.get name='idem_name' repository_name='ecr_repository_name' image_tag='ecr_image_tag'
Calling this exec module function from within a state:
my_unmanaged_resource: exec.run: - path: aws.ecr.image.get - kwargs: name: 'idem_name' repository_name: 'ecr_repository_name' image_tag: 'ecr_image_tag'
- async idem_aws.exec.aws.ecr.image.list_(hub, ctx, repository_name: str, registry_id: str = None) Dict[str, Any] [source]#
Lists AWS ECR Images for a Repository.
- Arg:
- repository_name(str):
The name of repository with images to be listed.
- registry_id(str, Optional):
The Amazon Web Services account ID associated with the registry that contains the repository in which to list images. If you do not specify a registry, the default registry is assumed.
Examples
Calling this exec module function from the cli:
idem exec aws.ecr.image.list repository_name='ecr_repository_name'
Calling this exec module function from within a state:
my_unmanaged_resource: exec.run: - path: aws.ecr.image.list - kwargs: repository_name: 'ecr_repository_name'