简体   繁体   中英

Registered container instances 0 AWS ECS

I created a cluster on Amazon ECS. It was successful but my Registered container instances is zero. I can't create a tasks because my cluster doesn't a container have an instance.

What to do? Hope you can help me. Thank you.

在此处输入图像描述

在此处输入图像描述

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:

  • re-launch one (or more) new EC2 instances following the doc above
  • re provision a cluster using the wizard and select that you want to deploy EC2 instances as well (this wizard will just to everything for you). Since you have an empty cluster you probably selected to deploy a cluster with no instances in the wizard
  • [ best ] re-launch your task using the Fargate launch type. Fargate is an AWS managed engine that allows you to launch containers/tasks without having customer provisioned infrastructure (ie EC2 instances).

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM