How to change instance type in AWS ECS cluster?

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

    Yes, you can change the instance type in ECS cluster. I believe you have created ECS cluster manually from AWS GUI. Behind the scene, its creating aws cloud formation template as per your inputs from AWS console(ECS) like VPC, instance type, and size, etc. Please follow the below steps for the same.

    1. Find the cloud formation template with the name "EC2ContainerService-{your-ecs-cluster-name}".
    2. Check the existing setting in the Parameters tab(you can check your instance type here).
    3. Now you need to update the cloud formation. Click on-> Update ->use current template ->next->update the EcsInstanceType variable ->next->next->update stack.
    4. Now your cloud formation update. now you can check in EC2 console that there is a new spot fleet with new instance type.

提交回复
热议问题