Leapp EC2 Instance Connect Plugin
This plugin aims to help developers and AWS users in general for remoting and forwarding into EC2 instance!
This plugin source code inspiration (copied) based on:
https://github.com/christian-calabrese/leapp-ssm-tunnels-plugin
The plugin uses this command aws ec2-instance-connect send-ssh-public-key to upload SSH public key to EC2 instance. Then SSH-ing (remote/forward) to EC2 instance.
It's possible to install and use this plugin as well explained by the Noovolari team throughout the Leapp's documentation that you can find here: Leapp plugins introduction
- Open Settings (⚙)
- Click Plugins
- Type
leapp-ec2-instance-connect-plugininInsert an npm package name - Click plus icon (⊕)
This plugin makes use of a json configuration file (ec2-connect-config.json) where you can specify the parameters needed to establish the tunnel.
You can use the below example to create your own file and place it in the Leapp installation folder (usually in $HOME (macos/linux/powershell) or %USERPROFILE% (windows/CMD) user directory).
For example:
$HOME/.Leapp/ec2-connect-config.json
You can find an example of such file in this repository called ec2-connect-config.example.json
[
{
"sessionName": "Session1",
"availabilityZone": "ap-southeast-1c",
"instanceId": "i-0abcdefghijkl1234",
"instanceOSUser": "ec2-user",
"instanceIPAddress": "8.8.8.8",
"sshPath": "/home/username/.ssh",
"sshPublicKeyFile": "id_ed25519.pub",
"sshPrivateKeyFile": "id_ed25519",
"modeType": "remoting/forwarding",
"mode": "forwarding",
"configs": [
{
"remoteHost": "ec2instancename.xxxx.ap-southeast-1.rds.amazonaws.com",
"remotePort": "3306",
"localPort": "3307"
}
]
},
{
"sessionName": "Session2",
"availabilityZone": "ap-southeast-1c",
"instanceId": "i-0abcdefghijkl1234",
"instanceOSUser": "ec2-user",
"instanceIPAddress": "8.8.8.8",
"sshPath": "/home/username/.ssh",
"sshPublicKeyFile": "id_ed25519.pub",
"sshPrivateKeyFile": "id_ed25519",
"modeType": "remoting/forwarding",
"mode": "remoting"
}
]- Configure the plugin (see
How to configure the plugin?section) - Create AWS session
- Right click on the session
- Choose Plugins
- Click
Start EC2 instance connect

