#!/bin/bash

RAW=$(aws ecr get-login --region us-east-1)
echo ${RAW}

echo 

REPLACED=$(echo ${RAW} | sed "s/https:\/\/711226717742.dkr.ecr.us-east-1.amazonaws.com/registry.transparent.com/g")
echo ${REPLACED}

${RAW}
${REPLACED}

#!/bin/bash

# IMPORTANT: requires that you have run aws configure --profile tl-registry to create a new profile with correct keys

RAW=$(aws ecr get-login --profile tl-registry)
echo ${RAW}

echo 

REPLACED=$(echo ${RAW} | sed "s/https:\/\/711226717742.dkr.ecr.us-east-1.amazonaws.com/registry.transparent.com/g")
echo ${REPLACED}

${RAW}
${REPLACED}

Use a profile to keep identities appart
Use a profile to keep identities appart
