Skip to main content
Skip table of contents

7- Running containers in ECS

[]

Which resources are involved

After uploading the images, you need to run them as containers.

For this, you need a cluster, two task definitions, two tasks, and two services.

A cluster is a basic resource that contains all the other resources. One cluster is enough. Any existing one can be used as well.

Tasks are running containers, whereas task definitions are configurations that specify which image is to be used and so on. We recommend running services with a few simulteneous tasks from the same definition and not single tasks. In this case, if a task - container - fails, there will be other tasks in that service so the application will keep working.

HCMS and HCMS Client require separate services, and consequently tasks and task definitions.

Create a cluster

At first, you need to create a cluster. There are a few important things to remember.

EC2 instance type

The EC2 instance to create must be big enough. We recommend at leat 8GB. We also recommend an Intel architecture. The resulting instance can be, for instance, of the type t3.large.

Network settings

You need to use the same VPC and subnets as for the load balancer.

Auto scaling group

Upon creation, you can go to the attached auto scaling group and change desired, minimum and maximum number of instances to launch depending on how many tasks you want to run.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.