如何将EC2实例注册到ECS集群? [英] How to register EC2 Instance to ECS cluster?

查看:210
本文介绍了如何将EC2实例注册到ECS集群?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在EC2上启动了2个ECS优化实例,但是如何将它们注册为ECS容器实例?

I have started 2 ECS optimized instances on EC2, but how can I register them as ECS container instances ?

无法找到一种方法.

推荐答案

创建EC2实例时,必须指定链接到ECS容器的IAM角色(如果使用SDK/...,则必须指定实例在参数中将此角色配置为ARN),如果您在aws网站上首次使用ECS时使用交互式ECS集群创建,则应该已经有一个ecsInstanceRole链接到默认集群.

When you create an EC2 instance, you must specified the IAM role linked to your ECS container (if using SDK/..., you must specified the "Instance Profile ARN" of this role in the parameters), if you use the interactive ECS cluster creation at your first ECS use on the aws website, you should already have an ecsInstanceRole link to the default cluster.

然后,启动后,您的EC2实例将自动注册为该群集中的ECS容器.

Then, after being launched, your EC2 instance will be automatically register as ECS container in this cluster.

这篇关于如何将EC2实例注册到ECS集群?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆