The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

In this following simple script I’ll show you how to add your local IP to the AWS console so you can access your ec2 instance using ssh without login into the AWS web console or finding out your IP first. This script will do the trick for you.