Connect ec2 instance directly to ecs cluster

0

I am trying to run 3 ecs tasks on 3 seperate ec2 instances each with their own docker image within 1 ecs cluster. The docker image calls upon a local config file that aims to allow the ec2 instances to communicate/interact with each other via the pre set elastic IP addresses associated with each ec2 instance. Right now I am unable to specify which cluster to directly connect each ec2 instances so I can then run the specified tasks. Additionally, i am not sure how to assign the task onto 1 specific instance within the group.

Marc
feita há 8 meses232 visualizações
1 Resposta
0

Hi, you can follow this step-by-step tutorial to register EC2 instances to a cluster and run EC2 type tasks.

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_AWSCLI_EC2.html

profile picture
HS
respondido há 8 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas