Using EC2 Spot Instances

Beginner

66 students completed the lab in ~48m

Total available time: 1h:20m

20+ students rated this lab!

Lab Overview

In this lab you will learn how EC2 spot instances can be used in AWS. You will see that spot instances can be used in much the same way as regular, on-demand instances except with a different pricing model built around them allowing you to save a substantial amount. You set a maximum price that you are willing to pay for an instance and if the spot market price rises to your maximum, your instance is subject to termination. Despite this complication, you will see that there are easy ways to manage this situation.

Lab Objectives

Upon completion of this lab you will be able to:

  • Create EC2 instances by placing spot requests
  • Handle instance interruptions
  • Auto scale a spot fleet
  • Get advice from Spot Bid Advisor

Lab Prerequisites

You should be familiar with:

  • Creating on-demand Amazon EC2 instances
  • Using EBS volumes with your instances
  • Working with autoscaling groups at a basic level

Lab Environment

Before completing the lab instructions the environment will look as follows:

 

After completing the lab instructions the environment should look similar to:

Follow these steps to learn by building helpful cloud resources

Log In to the Amazon Web Service Console

Your first step to start the Lab experience

Creating your first Spot Instance

Learn how to place spot requests and launch your first spot instance

Dealing with Spot Instance Termination

Use best practices to tolerate spot instance interruptions

Auto Scaling Spot Fleets

See how multiple spot instances can be combined and auto scaled with fleets

Informing your Bidding with Spot Bid Advisor

Query the advisor to develop your spot instance strategies