Skip to main content

Container Instance

A Container Instance in Amazon ECS (Elastic Container Service) refers to EC2 instances that host application containers. These instances are part of an ECS cluster and are managed using the Amazon ECS agent running on each instance. The agent is responsible for communicating with the ECS service to start, stop, and scale applications as needed. Container Instances provide the computational resources required to run Docker containers as part of an ECS deployment. For more detailed information on Container Instances, please refer to the official AWS documentation.

Supported Methods​

  • GET: Get a container instance by ID which consists of (clusterName)/(id)
  • LIST: List all container instances
  • SEARCH: Search for container instances by cluster

ec2-instance​

A Container Instance is directly related to an EC2 Instance in the context of Amazon ECS because it is essentially an EC2 instance that has been registered with an ECS cluster. The EC2 instance provides the necessary infrastructure to run the containers. Each EC2 instance can host multiple containers, depending on the available resources, and forms the backbone of the ECS service, enabling deployment and management of containers at scale.