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
asked 7 months ago221 views
1 Answer
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
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions