libera_utils.aws.ecr_upload#

Module for uploading docker images to the ECR

Functions

login_to_ecr(account_id, region_name)

Login to the AWS ECR using commands :param account_id: Users AWS account ID :type account_id: int :param region_name: String of the region that the users AWS account is in :type region_name: string

upload_image_to_ecr(parsed_args)

Upload docker image to the correct ECR repository

libera_utils.aws.ecr_upload.login_to_ecr(account_id, region_name)#

Login to the AWS ECR using commands :param account_id: Users AWS account ID :type account_id: int :param region_name: String of the region that the users AWS account is in :type region_name: string

Returns:

result – subproccess object that holds the details of the completed CLI command

Return type:

CompletedProcess

libera_utils.aws.ecr_upload.upload_image_to_ecr(parsed_args: Namespace)#

Upload docker image to the correct ECR repository

Parameters:

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

Return type:

None