Resize EC2 Spot Instances

0

I would like to resize an EC2 spot instance from c5.large to c5.xlarge. Has AWS added support for this yet?

질문됨 2년 전911회 조회
2개 답변
1

Hello, Good question

It's a tricky situation I guess

You must stop your Amazon EBS-backed instance before you can change its instance type. Ensure that you plan for downtime while your instance is stopped. Stopping the instance and changing its instance type might take a few minutes, and restarting your instance might take a variable amount of time depending on your application's startup scripts. For more information, see Stop and start your instance.

if you try to stop a Spot instance, you would get the following error

Failed to stop the instance instance id
You can't stop the Spot Instance 'instance id' because it is associated with a one-time Spot Instance request. You can only stop Spot Instances associated with persistent Spot Instance requests.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html

I think you are better off creating a new Spot instance with c5.xlarge

Sri

profile picture
Sri
답변함 2년 전
profile pictureAWS
전문가
Rob_H
검토됨 2년 전
0

Hi,

If your Spot instance is a ‘persistent’ type one, you can use use EC2-Spot-converter tool to automate this resizing task.

https://github.com/jcjorel/ec2-spot-converter

Best.

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠