简体   繁体   English

AWS ECS集群未显示容器

[英]AWS ECS cluster is not showing container

I am trying to create an ECS cluster(using cloudformation template), where i can create an instance installed with an provided AMI through Yaml file But the problem i am facing - 我正在尝试创建一个ECS群集(使用cloudformation模板),在这里我可以创建一个通过Yaml文件安装了提供的AMI的实例,但是我面临的问题是-

In Yaml file - 在Yaml文件中-

I am creating a cluster then creating a service and task with minimum required values 我正在创建集群,然后创建具有最低要求值的服务和任务

The cluster is creating service is also creating but I can't see any Container instance there. 集群正在创建服务也在创建,但是我看不到那里的任何Container实例。

How can I be able to see container instance, what kind of changes/modifications I need to make in my YAML file? 如何查看容器实例,需要在YAML文件中进行哪些更改/修改?

在此处输入图片说明

ECS is amazon manage service you donot have any type of access to underlying resources. ECS是您不具有对基础资源的任何类型的访问权的亚马逊管理服务。

ECS also known as fargate and in that task is there it & not create container instances. ECS也称为Fargate,在该任务中,它不会创建容器实例。

there is total two launch type in ECS where ECS中共有两种启动类型,其中

  • ECS fargate launch type ECS Fargate发射类型
  • EC2 launch type EC2启动类型

in second launch type ec2 only it create container instance and you can watch it in ec2 section while with fargate you have to manage it as task defination 在第二个启动类型ec2中,它仅创建容器实例,您可以在ec2部分中观看它,而使用fargate则必须将其作为任务定义来管理

Launch type definition documentation : https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html 启动类型定义文档: https : //docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html

you can read more here : https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html 您可以在此处了解更多信息: https : //docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html

For EC2 launch type your cluster type will be same 对于EC2启动类型,您的群集类型将相同

Type: AWS::ECS::Cluster 类型:AWS :: ECS :: Cluster

But SG, VPC,NATGateway and other resources will change 但是SG,VPC,NATGateway和其他资源将发生变化

EcsHostSecurityGroup:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: Access to the ECS hosts that run containers
      VpcId: !Ref 'VPC'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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