I'm trying to push a docker image to aws by using Invoke-Expression -Command (Get-ECRLoginCommand -Region us-east-2).Command
but i Just want to know the correct format of this command to push the image
I'm trying to push a docker image to aws by using Invoke-Expression -Command (Get-ECRLoginCommand -Region us-east-2).Command
but i Just want to know the correct format of this command to push the image
From your question, it seems you want to push or pull the image from ECR. Here are the steps
aws configure using aws-cli or assign role if you are on the remote serverHere is the command for window
Invoke-Expression -Command (Get-ECRLoginCommand -Region us-west-2).Command
The command for Linux/Mac
$(aws ecr get-login --no-include-email --region us-west-2)