You can build an application, create a docker image and upload it to AWS ECR using Azure DevOps build pipeline. Later deploy this image from AWS ECR to AWS ECS Fargate container using the Release pipeline in Azure DevOps.
Github Actions: Build & push Docker image to AWS ECR (Elastic Container Registry)
Publishing a Docker image to Amazon Elastic Container Registry (ECR) is a bit different than it works with other containers. In this article, you will learn how to build and publish a Docker image using Github Actions (workflow).