I'm using the ECR credentials task, and have written a small script to push a docker image to ecr. for some reason, the below command is not successful unless i wrap it in an eval.
$(aws ecr get-login --no-include-email).
eval $(aws ecr get-login --no-include-email) --- works
The examples i read for ecr did not include this. I'm ok with it if that's how it has to work, just not entirely clear why.