Redefining EC2 Connectivity: How EIC Endpoint Surpasses Instance Connect and SSM
- Bhavuk Bhardwaj
- Jun 18, 2023
- 2 min read

How many ways are there to connect to an EC2 instance?
There are several methods, with three being the most commonly utilized:
The traditional Jump Box method,
EC2 Instance Connect, and
Session Manager.
However, AWS has recently introduced a new feature to enhance these connection options: the Amazon EC2 Instance Connect (EIC) Endpoint. This feature enables you to securely connect to your instances and other VPC resources from the internet, further expanding the flexibility and security of managing your AWS resources.
EIC Endpoint Overview
EIC Endpoint is an identity-aware TCP proxy.
Identity Aware - It means it uses AWS Identity and Access Management (IAM) credentials to authenticate and authorise requests.
TCP Proxy: It means EIC Endpoint acts as an intermediary for requests from clients seeking resources from other servers. In the context of EIC Endpoint, it allows clients to establish a connection to an EC2 instance through the endpoint, rather than connecting directly.
How to create an EIC Endpoint ?
Note - You must have the required IAM permission to connect to an EC2 Instance Connect Endpoint. For more - here.
Open the VPC Console and choose the Endpoints.
Choose Create endpoint, and then complete the settings in the dialog box and click Create Endpoint, as follows :-

How to connect to an Instance with EIC Endpoint ?
EC2 Instance Connect Endpoint allows you to connect to an instance without requiring the instance to have a public IPv4 address.
Click on EC2 Console and select the EC2.
Choose Connect and do the following :-

[Max tunnel duration (seconds), enter the maximum allowed duration for the SSH connection.]
Comparison Table
Conclusion
In a comparison table that evaluated various connection methods based on several factors including the need for a public IP, IGW/NAT Gateway, identity-based access, network-based access, use of ephemeral keys, requirement of an agent, and operational overhead, EIC Endpoint emerged as a superior option.
Unrelated... Been a year since we last worked, but still amazed at your dedication to educate the mass and provide multiple solutions to choose from.
The blog post is quite educational. Thank you!