If you need to create an Elastic Container Registry (ECR) Repository from the AWS CLI, you can do the following:

1
2
3
4
aws ecr create-repository \
--repository-name <repo-name> \
--image-scanning-configuration scanOnPush=true \
--region ${AWS_REGION}