1 Answer
- Newest
- Most votes
- Most comments
1
Hello Alice,
Could you please check the following troubleshooting steps for ECS and let me know if these help you?
- Please make sure you have allocated an IAM role to your launch template. Check the documentation for the IAM role here
- Please make sure you are using ECS optimised AMI or have the required tooling installed in your AMI.
- Please make sure that the autoscaling group you have previously created has "maximum" instance configured for the group to be greater than 0.
- Please make sure the instances have either public IP or route to NAT gateway or VPC endpoint so that they can contact Amazon ECS service endpoint.
- . If you have more than 1 cluster in your region, please make sure in your launch template you have the following user data configured:
#!/bin/bash
echo ECS_CLUSTER=your_cluster_name >> /etc/ecs/ecs.config
This documentation here contains all of the above steps with a few more that are needed to configure EC2 instances in ECS, please have a look in case the above top 5 suspects does not work for you.
To troubleshoot further, you could also look login to your instance and check the logs under /var/log/ecs/ecs-agent/*
Thanks, Manish
answered a year ago
Relevant content
- asked 5 years ago
- asked a year ago
- asked 2 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago