Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teambion/connect
AWS Ssm Connector to able access EC2 instance without recheck dashboard or connect to vpn
https://github.com/teambion/connect
Last synced: 9 days ago
JSON representation
AWS Ssm Connector to able access EC2 instance without recheck dashboard or connect to vpn
- Host: GitHub
- URL: https://github.com/teambion/connect
- Owner: TeamBion
- Created: 2021-02-14T20:21:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T21:21:30.000Z (over 2 years ago)
- Last Synced: 2023-03-06T22:48:03.010Z (almost 2 years ago)
- Language: Python
- Size: 239 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# connect
AWS Ssm Connector to able access EC2 instance without access to AWS dashboard.This tools presents a simple menu for that purposes.# Installation
connect tool basically developed as a pip3 package you easily setup all the dependencies and build the packages like this;
```sh
$ pip3 install . --upgrade
```
After your installation completed you can get the output like this```sh
$ connect --region eu-west-1
> kubernetes-worker-1 , i-INSTANCE_ID
> kubernetes-master , i-INSTANCE_ID
```### Example usage
```sh
$ connect.py --region eu-west-2 --tag Name --value asg-development
```For more details
```sh
connect --help
Usage: connect [options]Options:
-h, --help show this help message and exit
-r REGION, --region=REGION
Region name of the aws account
-t TAG, --tag=TAG Tag of the EC2 instance
```You can select easily with interactive menu
# Setup
You can install python3 dependencies like that :
```sh
$ pip3 install -r requirements.txt
```To connect your instance over ssm client you have to install this plugin following to this documents of AWS:
Session Manager Plugin InstallationAfter than you should specify default AWS_PROFILE, or credential values into your terminal session (I prefer profile usage):
```sh
$ export AWS_PROFILE= AWS_DEFAULT_REGION= AWS_SDK_LOAD_CONFIG=1
```Notice : If you want to run this via your shell, you should move somewhere in your $PATH directory: