How to change instance type in AWS ECS cluster?

后端 未结 8 1378
孤独总比滥情好
孤独总比滥情好 2021-02-01 01:34

I have a cluster in AWS EC2 Container Service. When I\'ve set it up, I used t2.micro instances because those were sufficient for development. Now I\'d like to use more powerful

8条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 02:21

    Here are the exact steps I took to update the instance type on my cluster:

    • Go to the cluster service, update Number of tasks to 0

    • Go to EC2 -> Launch Configurations -> Actions dropdown -> Copy launch configuration and set the new instance type

    • Go to EC2 -> Auto Scaling Groups -> Edit -> set Launch Configuration to newly created launch configuration

    • Go to EC2 -> Auto Scaling Groups -> Instances -> Detach instance

    • Go to EC2 -> Launch Configurations -> Delete old launch configuration

    • Go to the cluster service, update Number of tasks to your desired count.

    Now when tasks start, it'll be running on the updated EC2 instance type.

提交回复
热议问题