From the course: AWS Certified Security - Specialty (SCS-C03) Cert Prep

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

[HOL] Connect to EC2 with Instance Connect

[HOL] Connect to EC2 with Instance Connect

In this lab, I'm going to show you how to connect to EC2 in a private subnet using InstanceConnect. So as we discussed before, what we have to do here is we need a specific type of VPC endpoint, and it's called the EC2 InstanceConnect endpoint. So once we've done that, we will then be able to connect our instances in private subnets using InstanceConnect. Now, what I'm going to do, I'm going to use this file that we opened earlier on for the CLI, so that I can launch an instance. And I'm going to do so in my custom VPC. So let's head back to VPC. I've got my custom VPC from the previous lab. And I'm going to copy a, in fact, what I want to do is go to the subnets here. And I want to choose a private subnet. Let me order those. Private one, let's choose this one. Get the subnet ID. And I'm going to put that in here. And then I want the security group ID. So let's come to Security Groups. And I created the SSH lab SG. This is the one. So I want the security group name. Let's pop that in…

Contents