LAB - Public and Private subnets and the gateways that enable them

Hi,
unable to ssh since i cannot download keypair as ec2-user already exists.
ssh -i “ec2-user.pem” ec2-user@

Which lab or playground is this for? A link is very helpful here.

Lab is mentioned as subject line - AWS solution architect

https://learn.kodekloud.com/user/courses/aws-solutions-architect-associate-certification/module/e03ffb87-3345-4fbb-9576-cb53d21d7a6a/lesson/d34433fa-8346-4bfa-85de-77b434a7972a

Thanks for the link – there are multiple AWS courses :slight_smile:

I think part of the issue here is that the interface of the labs is a little confusing. The AWS labs have two parallel sides: the AWS console, which you start up using the credentials supplied in the other side, the KodeKloud side.

  1. To start the lab, you using the console link to start the console.
  2. When you do this, a terminal is initialized on the KK side. Confusingly, it’s collapsed; you need to click on the

symbol on the upper right end of the screen which will cause the terminal to appear.

If you check the terminal you’ll see that the key file is in the /root directory:

~ on ☁️  (us-east-1) ➜  ls -l
total 8
-rw-r--r-- 1 root root  604 May 15 04:30 create-sg.sh
-r-------- 1 root root 1675 Aug  7 03:51 ec2-user.pem

I’m pretty sure this is the key you want.