简体   繁体   English

AWS ECS Fargate 中的用户数据或引导

[英]UserData or Bootstrapping in AWS ECS Fargate

I have an ECS cluster - EC2-based built using Terraform.我有一个 ECS 集群 - 使用 Terraform 构建的基于 EC2 的集群。 The Autoscaling group for this cluster has been configured that is having User-Data.此集群的 Autoscaling 组已配置为具有用户数据。 Now, I want to migrate this ECS cluster from EC2 to Fargate.现在,我想将此 ECS 集群从 EC2 迁移到 Fargate。 How I can migrate/mention user-data when I'm defining Autoscaling configuration for Fargate?在为 Fargate 定义自动缩放配置时如何迁移/提及用户数据?

How I can migrate/mention user-data我如何迁移/提及用户数据

You don't.你没有。 User data is only for EC2 instances, and in Fargate you have no control over them.用户数据仅适用于 EC2 实例,在 Fargate 中您无法控制它们。 You have to abandon your user-data, as it has no use in you Fargate.您必须放弃您的用户数据,因为它对您的 Fargate 没有用处。

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

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