Terraform - Docker push image

People, I study terraform and I create challenge for me.

Create docker image and push it to amazon ecr to use in future in ecs.

I cant see any docs or resource that to push that image.

Can I to push with terraform without aws cli or use packer?