AWS Builder Center
Lesser Known AWS Features: Day 58: EC2 Instance Connect Endpoint

Lesser Known AWS Features: Day 58: EC2 Instance Connect Endpoint

While exploring AWS networking features, I came across a handy one that removes a common security headache.

Series: Lesser Known AWS Features (32 articles)

  1. …
  2. 28
    Lesser Known AWS Features: Day 58: EC2 Instance Connect Endpoint This article
Student
EC2 Instance Connect Endpoint lets you connect to EC2 instances in private subnets over SSH or RDP, without a bastion host or a public IP address.
Here’s what makes it useful:
🔹 No Bastion Host: Skip the extra EC2 instance you have to patch, secure, and pay for.
🔹 No Public IP Needed: Instances stay in private subnets with no direct internet exposure.
🔹 IAM-Based Access: Control who can connect using IAM policies, not shared SSH keys.
🔹 Better Auditing: Connection attempts are logged in AWS CloudTrail, so you can see who connected and when.
🔹 Simple CLI Access: Connect with  aws ec2-instance-connect ssh --instance-id <id>  or open a TCP tunnel for other tools.
Real-life example:
Imagine a database server running in a private subnet that an engineer needs to troubleshoot.
Instead of opening port 22 to the internet or maintaining a jump server, you create an Instance Connect Endpoint in the VPC. The engineer connects using their IAM permissions, and the access is logged automatically.
This reduces the attack surface and removes infrastructure you’d otherwise have to maintain.
My takeaway: Many teams still run bastion hosts out of habit. For private instances, an Instance Connect Endpoint is a simpler and more secure way to get access.
Are you still using bastion hosts, or have you moved to Instance Connect Endpoint or Session Manager?

Series: Lesser Known AWS Features (32 articles)

  1. …
  2. 28
    Lesser Known AWS Features: Day 58: EC2 Instance Connect Endpoint This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article