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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ