How can I create an AWS ECR repository if it doesn't already exist?
One liner to create a repo if it doesn't exist:
aws ecr describe-repositories --repository-names ${REPO_NAME} || aws ecr create-repository --repository-name ${REPO_NAME}
1.4m articles
1.4m replys
5 comments
57.0k users