How to create an AWS EC2 Spot request step by step
Welcome to CloudAffaire and this is Debjeet
In the last blog post, we have discussed AWS EC2 Spot instance.
In this blog post, we are going to create an AWS EC2 Spot instance request.
How to create an AWS EC2 Spot request step by step:
Step 1: Login to your AWS console and navigate to EC2 service and click on ‘Spot Request’ under INSTANCES.
Step 2: Click ‘Request Spot Instances’.
Step 3: Select Submit a one-time Spot instance request.
There are three types of Spot request that you can make
- Request: Submit a one-time Spot instance request
- Request and Maintain: Request a fleet of Spot instances to maintain your target capacity
- Reserve for duration: Request a Spot instance with no interruption for 1 to 6 hours (a Spot block)
In this blog, we will be creating a one time request.
Step 4: Provide the number of Spot instance that you want to launch under Total target capacity.
You can also include On-Demand instance under your Spot instance request provided you have a valid launch template for the On-Demand instance.
Step 5: Choose AMI for your Spot instance. Click on ‘Search for AMI’ to select the AMI.
We are going to use the default one for this blog.
Step 6: To select the instance type click ‘Select’.
We are going to use T2.micro for this Spot request.
Step 7: Provide additional configuration for your Spot request and click ‘Launch’.
Warning: Chagres apply depending upon the region and number of instances if your request is fulfilled.
You will get a confirmation message that your Spot instance request successfully created.
In order to view the status of this request click OK and you will be redirected to your Spot instance request page.
Note: Once the Spot instance request is created it will be only fulfilled if there is capacity available in your selected availability zone and instance type and your Spot instance request price is greater than the current Spot price.
Hope you have enjoyed this article. In the next blog post, we are going discuss launch template