How to change instance type in AWS ECS cluster?

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

    The AWS docs has a complete step by step guide covering CloudFormationStack and ECS cluster launched manually.

    How do I change my container instance type in Amazon ECS?

    From the guide:

    To change your container instance type, complete the steps in one of the following sections:

    1. Update container instances launched in an ECS cluster through the AWS CloudFormation stack
    2. Update container instances launched manually in an ECS cluster
    0 讨论(0)
  • 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
    0 讨论(0)
提交回复
热议问题