Walk-Through: Spot Instances for Big Savings
Leverage Spot Instances with persistent data stores to save big.
In this walk-through, we'll be creating a very minimal web server fleet that will be able to serve up HTML from a shared EFS volume. Of course, with static HTML using an S3 bucket would be far simpler and cheaper. However, this could map over to cases where we have dynamic HTML or some other use cases. The intent here is just to build some skills for setting up a Spot Fleet, which can be transposed to many other use cases.
Some may find this walk-through challenging, especially if you don't have much exposure to some of these services. This exercise assumes some knowledge in areas that are a little beyond the scope of this course. If you like, you can sit this one out.
Here's a typical architecture that might use the components we're building. For simplicity’s sake, we're not going to use an Application Load Balancer, but rather just hit the Spot Instance directly.
💡Pro Tip: It’s probably best not to assign an Elastic IP to a Spot Instance for purposes of public DNS resolution. If that Spot Instance goes away and a new one replaces it, the EIP won’t be reassigned to the new instance. You can handle this in two ways. The most common way is to use a load balancer in front of the ...