How to change instance type in AWS ECS cluster?

后端 未结 8 1580
孤独总比滥情好
孤独总比滥情好 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:33

    Yes, you can achieve this in CloudFormation.

    • Click on the Stack corresponding to your ECS-Cluster.
    • Click Update Stack
    • Use radiocurrent template, Next
    • change EcsInstanceType
    • Next, Next, Update
    • Upscale your cluster to 2*n instances
    • Wait for the n new instances of the new type being created
    • Downscale your cluster to n
    • Or you could just drain and terminate the instances 1 by 1

提交回复
热议问题