libera_utils.aws.ecr_upload.ecr_upload_cli_handler#

libera_utils.aws.ecr_upload.ecr_upload_cli_handler(parsed_args: Namespace) → None#

CLI handler function for ecr-upload CLI subcommand.

Parameters:

parsed_args (argparse.Namespace) – Namespace of parsed CLI arguments

Return type:

None

Raises:
  • ImageTagAlreadyExistsError – If a requested version tag already exists in the repository, in which case nothing is pushed, or if ECR refuses a tag taken by another push since that check, in which case the tags not yet pushed are skipped. No version is registered.

  • ValueError – If the local image reference is malformed, the role cannot be assumed, the local image is not found, or the push fails for any other reason.

  • botocore.exceptions.ClientError – If the check for existing tags, or another ECR call, fails.