Creating an ECS service for a Hello world application
Creating an ECS Service for a Hello world application using the tutum/hello-world
Docker image is discussed in detail in Chapter 2, Networking. In this section, we shall create a hello-world
cluster consisting of a hello-world-service
service with three tasks for a tutum/hello-world
Docker image. To create the cluster, service, and task definition, use the same procedure as in Chapter 2, Networking which is as follows:
- Create a Container Definition,Â
hello-world
, for theÂtutum/hello-world
Docker image
- Create a task definition,Â
hello-world-task-definition
- Create a service,Â
hello-world-service
- Create a cluster,Â
hello-world
The procedure is the same as in Chapter 2, Networking, except for a few differences. Define the service with three tasks instead of the default one task:
- Click on
Edit
in theÂDefine your service
section, as shown in the following screenshot:
- In theÂ
Set up service
: hello-world-service
dialog, set theÂNumber of desired tasks
to...