Spot instance for testing

0

I'm running a Java application on an EC2 instance (RHEL). It has only 8GB RAM that's not enough to test some stuff. Can I take an image of this machine, request a spot instance using this image, and test it? I only need it for a few hours. Is it possible?

Sri
asked 5 months ago159 views
1 Answer
0

Hello.

It is possible to create an EC2 AMI that is currently running as an On-Demand Instance and then create a Spot Instance from that AMI.
Once you have created your custom AMI, request a Spot Instance using the steps in the documentation below.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#using-spot-instances-request

If there is no free space in the specified Spot Instance capacity pool, you may not be able to start the Spot Instance, so in that case, you may want to start an On-Demand Instance and delete it after the test is completed.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html

profile picture
EXPERT
answered 5 months ago
profile pictureAWS
EXPERT
reviewed 5 months ago
  • The current EC2 instance is a RI.

  • You can create a custom AMI regardless of whether you are using Reserved Instances or not. You can also request Spot Instances regardless of whether you are using Reserved Instances.

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