In the batch file I wrote, I want to login to aws ecr to pull down docker images. To login, I need to run
aws ecr get-login --region=xxx
which returns
docker login {login-credential}
The actual commands to login. So I need to evaluate the result of aws ecr get-login --region=xxx
.
In shell script, I can just put the expression inside ${ ... }
, but how do I do this in batch file?
ps. I tried call aws ecr get-login --region=xxx
, but that didn't seem to work.