Amazon ECS is a highly scalable container service that simplifies the running, decommissioning, and management of containers in the cluster. Containers will be defined in task definitions to run single tasks or multiple tasks in a service.
AWS ECR is a fully managed Docker container registry service that simplifies the storage, management, and deployment of Docker container images. ECR can be integrated with Amazon Elastic Container Service (ECS) to simplify deployment flow setup for production systems and remove the complexity of repository management for container images.
In Amazon ECS, task definitions are created to define setup parameters before launching Docker containers in Amazon ECS. The parameters that can be set in the task definition are:
In Amazon ECS, a Service is a configuration that allows running one or more consecutive tasks in a cluster and maintaining them automatically. Tasks and services can be run on serverless infrastructures (managed by AWS Fargate) or through your own managed infrastructure such as an EC2 cluster.
An Amazon ECS Cluster is a resource management unit used to deploy containers in AWS ECS. Once you fully define the task definitions and services for the ECS Cluster, the ECS Cluster will create the resources needed to deploy the container. An ECS cluster is a group (or one) of virtual machines containing containers.