1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
répondu il y a 9 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- demandé il y a 7 mois
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an