By using AWS re:Post, you agree to the Terms of Use
/Resize EC2 Spot Instances/

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?

asked 5 months ago31 views
1 Answers
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

answered 5 months ago
EXPERT
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions