An interactive command-line tool to list Amazon EC2 instances and establish secure connections using AWS Systems Manager (SSM) Session Manager.
Project description
ec2-ssm-connect
An interactive command-line tool to list Amazon EC2 instances and establish secure connections using AWS Systems Manager (SSM) Session Manager.
🚀 Installation
Before using this tool, ensure you have the AWS CLI installed. This tool depends on it. AWS CLI
pip install ec2-ssm-connect
🛠 Usage
The application reads the AWS CLI credentials from the environment variables. After installation, you can use the command:
ec2-ssm-connect
To filter EC2 instances by name:
ec2-ssm-connect --filter [INSTANCE_NAME]
Example:
$ ec2-ssm-connect
1. ID: i-0bb72e6f61ef2s612 Name: acme-aws-int-keycloak-ec2
2. ID: i-0819d17cdf4ees213 Name: acme-aws-int-auth-proxy-ec2
3. ID: i-082949bfd9b12s7cf Name: acme-aws-int-auth-app-ec2
4. ID: i-0caaf2ffbb132se5b Name: acme-aws-int-auth-web-ec2
5. ID: i-0dd580f86932as157 Name: jenkins-int-instance
6. ID: i-001bfa8b72680s6d9 Name: vault-int-ecs-instance
7. ID: i-0295e01f6bc12se68 Name: server01-int-ecs-instance
Enter the number of the EC2 instance you want to connect to: [HERE YOU ENTER THE NUMBER OF THE INSTANCE YOU WANT TO CONNECT TO, IN THIS CASE 1 TO 7]
$ ec2-ssm-connect -f jenkins
1. ID: i-0dd580f86932as157 Name: jenkins-int-instance
Enter the number of the EC2 instance you want to connect to: [HERE YOU ENTER THE NUMBER OF THE INSTANCE YOU WANT TO CONNECT TO, IN THIS CASE ONLY 1 IS POSSIBLE]
📦 Dependencies
- boto3: For AWS SDK functionalities.
- AWS CLI: Required for establishing connections with EC2 instances.
✍️ Author
- Ingo Marlos Batista de Sousa
📜 License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ec2-ssm-connect-0.1.5.tar.gz
.
File metadata
- Download URL: ec2-ssm-connect-0.1.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b04fd887ef4970c212223a38ffff4bb9c7da4e9e54c8a740050307974ad6c79c |
|
MD5 | b2f8ffff0e7174f1db043b1031c593bd |
|
BLAKE2b-256 | 1ebf2124824d1567271a4288107659451436e84ec2daa024ce819e8ccc59dfd8 |
File details
Details for the file ec2_ssm_connect-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: ec2_ssm_connect-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d232ba498fe38a40e4819f6d849084d463d0797876d8261867cdf37c2d770b45 |
|
MD5 | b10c91ecc652a637ed6031f210dac625 |
|
BLAKE2b-256 | 5e0902073a24a7decc1c160128c050b7e3e9c7a7e2315317de4fd5d9299346aa |