Creating an Amazon ECS service - Amazon Elastic Container Service

Creating an Amazon ECS service

When you create an Amazon ECS service, you specify the basic parameters that define what makes up your service and how it should behave. These parameters create a service definition. For more information, see Service definition parameters.

For services hosted on Fargate or Amazon EC2 instances, you can optionally configure an Elastic Load Balancing load balancer to distribute traffic across the containers in your service. For more information, see Service load balancing.

Note

When using a load balancer with services hosted on Amazon EC2 instances, you should verify that your instances can receive traffic from your load balancers. You can allow traffic to all ports on your instances from your load balancer's security group to ensure that traffic can reach any containers that use dynamically assigned ports.

We provide walkthroughs for creating an Amazon ECS service using the AWS Management Console in the following pages.