CLI tool to help you search EC2 instances with AWS CLI.
Do not have to keep framing the commands with AWSCLI everytime
just type
ec2search <searchstring>
If you want to search the server in specific AWS CLI named profiles,
ec2search <searchstring> <profilename>
Thats all. Give it a try.
A Handy tool for AWS Cloud Engineers, SREs, DevOps Engineers.
- You need to have the AWS CLI installed.
- Have the aws cli configured
aws configure
- try some simple commands like
aws ec2 describe-instances
to verify that you have necassary permissions to list the instances. - If you have the named profiles you can pass it as an option to search for the instance using specific profile ( otherwise default would be taken)
- EC2 Search uses the aws cli tool, its just a wrapper, EC2 Search does not directly connect to AWS or use your security credentials anyway.
- Search String and AWS CLI profile name is Case sensitive
- AWS CLI must be in your path. In other words you should be able to invoke
aws
command from your terminal with no path prefix or export
Download the right binary or download the source code or build it by running the following commands
git clone https://github.com/AKSarav/EC2Search.git
# If you want to use the default profile
go run . <SEARCH_STRING>
# If you have multiple named profiles
go run . <SEARCH_STRING> <AWS CLI PROFILE>