I have an ECS cluster - EC2-based built using Terraform. The Autoscaling group for this cluster has been configured that is having User-Data. Now, I want to migrate this ECS cluster from EC2 to Fargate. How I can migrate/mention user-data when I'm defining Autoscaling configuration for 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. You have to abandon your user-data, as it has no use in you Fargate.
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.