8b0360e13c
In addition, move shell scripting questions into a separate file.
1.1 KiB
1.1 KiB
AWS EC2 - Spot Instances
Objectives
A. Create two Spot instances using a Spot Request with the following properties:
- Amazon Linux 2 AMI
- 2 instances as target capacity (at any given point of time) while each one has 2 vCPUs and 3 GiB RAM
B. Create a single Spot instance using Amazon Linux 2 and t2.micro
Solution
A. Create Spot Fleets:
- Go to EC2 service
- Click on "Spot Requests"
- Click on "Request Spot Instances" button
- Set the following values for parameters:
- Amazon Linux 2 AMI
- Total target capacity -> 2
- Check "Maintain target capacity"
- vCPUs: 2
- Memory: 3 GiB RAM
- Click on Launch
B. Create a single Spot instance:
- Go to EC2 service
- Click on "Instances"
- Click on "Launch Instances"
- Choose "Amazon Linux 2 AMI" and click on "Next"
- Choose t2.micro and click on "Next: Configure Instance Details"
- Select "Request Spot instances"
- Set Maximum price above current price
- Click on "Review and Launch"