in docker_utils.py [0:0]
def _ecr_login(ecr_client, aws_account):
auth = ecr_client.get_authorization_token(registryIds=[aws_account])
authorization_data = auth['authorizationData'][0]
raw_token = base64.b64decode(authorization_data['authorizationToken'])
token = raw_token.decode('utf-8').strip('AWS:')
ecr_url = auth['authorizationData'][0]['proxyEndpoint']
cmd = ['docker', 'login', '-u', 'AWS', '-p', token, ecr_url]
_execute(cmd, quiet=True)
print("Logged into ECR")