

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: EC2 Instance Configuration: Keys
incomplete
2: EC2 Instances
incomplete
3: AMIs and Instance Types
incomplete
4: Public IPs
incomplete
5: Elastic IPs
incomplete
6: Security Groups
incomplete
7: SSH to Our Server
incomplete
8: Deploy the PatientPing Site
incomplete
9: Open Web Traffic
incomplete
10: Creating and Using Your Own AMI
incomplete
11: Reserved Instances and Savings Plans
incomplete
12: Auto Scaling Groups
incomplete
13: Launch Template
incomplete
14: Launch from Template
incomplete
15: Spot Instances
incomplete
16: Stateful and Stateless Applications
incomplete
17: Optional Cleanup
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
We need to get the PatientPing application running on a server, but first we need a secure way to connect to that server. Usually, this is done with ssh and a key pair.
Windows servers have extra hoops to jump through (some of them also requiring a key pair), but Linux systems make up the majority of cloud servers, even on Microsoft's Azure, which gives me joy. We'll focus on Linux for this course.
A cryptographic key pair has two parts that work together:
If you've ever used ssh to connect to a server, you probably had to generate a key pair for it. You'll do the same thing to access your AWS server instances.
All PatientPing employees need to have their "own" key pair. Let's make one!
Cost check: AWS would probably love to charge by the key pair, but they don't; it's free.
ssh-keygen -t ed25519 -C "patientping-key" -f ~/.ssh/patientping-key
For this use case, do not set a password on the SSH key. Passwords are good IRL to harden security, but it will prevent some of our bootdev tests from working.
aws ec2 import-key-pair --key-name "patientping-key" --public-key-material fileb://$HOME/.ssh/patientping-key.pub
aws ec2 describe-key-pairs
Run and submit the CLI tests.