EC2 instances won't be visible out of the box in the ECS cluster just because they exist in your account. They need to be made join the cluster. First you'd need to use an ECS-optimized AMI (unless you want to build one on your own which is possible but..) and then you'd need to customize the launch to tell it which cluster to join. See this doc page .
You have 3 options:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.