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
已提问 7 个月前232 查看次数
1 回答
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
已回答 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则