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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With