forked from bregman-arie/devops-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In addition, move shell scripting questions into a separate file.
- Loading branch information
abregman
committed
Nov 12, 2021
1 parent
4325525
commit 8b0360e
Showing
5 changed files
with
338 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## 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: | ||
|
||
1. Go to EC2 service | ||
2. Click on "Spot Requests" | ||
3. Click on "Request Spot Instances" button | ||
4. Set the following values for parameters: | ||
* Amazon Linux 2 AMI | ||
* Total target capacity -> 2 | ||
* Check "Maintain target capacity" | ||
* vCPUs: 2 | ||
* Memory: 3 GiB RAM | ||
5. Click on Launch | ||
|
||
B. Create a single Spot instance: | ||
|
||
1. Go to EC2 service | ||
2. Click on "Instances" | ||
3. Click on "Launch Instances" | ||
4. Choose "Amazon Linux 2 AMI" and click on "Next" | ||
5. Choose t2.micro and click on "Next: Configure Instance Details" | ||
6. Select "Request Spot instances" | ||
7. Set Maximum price above current price | ||
8. Click on "Review and Launch" |
Oops, something went wrong.