Amazon ECR registry as Private registry

Cant I use Amazon ECR registry the same was as I am creating private registry?

  1. Whitelist the private registry by adding to daemon.json file and restart docker service
  2. docker push <ecr/registry/ip>/<image_name>
  3. docker pull <ecr/registry/ip>/<image_name>

we need to use aws cli, but I dont want to use the same and handle it via private registry method.
Any leads?

Source: StackOverflow