Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EC2 instance not joining ECS Cluster

I have an EC2 cluster and I'm trying to add EC2 machines to it.

I have added ECS_CLUSTER=cluster_name to /etc/ecs/ecs.config with user data but the instance doesn't join the cluster.

I'm looking for log files or any other evidence of the cluster-joining process that may indicate why my instance is not joining. I do not have a /var/log/ecs folder.

like image 701
Dan Avatar asked Oct 19 '16 09:10

Dan


People also ask

How do I connect to ECS cluster?

Open the Amazon ECS console at https://console.aws.amazon.com/ecs/ . Select the cluster that hosts your container instance. On the Cluster page, choose ECS Instances. On the Container Instance column, select the container instance to connect to.

Was unable to place a task because no container instance met all of its requirements ECS?

You can receive this error due to one or more of the following reasons: No container instances were found in your cluster. The port needed by the task is already in use. Not enough memory for your tasks.


1 Answers

You need to use an ECS AMI,

Or you need to install the ECS agent

http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-install.html

And then you need to start/restart the ecs agent after changing that config

restart ecs
like image 190
Daniel Scott Avatar answered Sep 21 '22 21:09

Daniel Scott