Amazon EC2 Instance Connect is a simple and secure way to connect to your instances using Secure Shell (SSH). With EC2 Instance Connect, you can control SSH access to your instances using AWS Identity and Access Management (IAM) policies as well as audit connection requests with AWS CloudTrail events.
Configure your host to use EC2 Instance Connect
To connect using AWS Instance Connect, be sure your keys "id_rsa" and "id_rsa.pub" are in the current directory.
USAGE:
Help
./instance_connect.sh -h
Connect
./instance_connect.sh your_instance_name