1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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
답변함 9달 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전