1.0.51 • Published 2 months ago

leapp-ec2-instance-connect-plugin v1.0.51

Weekly downloads
-
License
MPL
Repository
github
Last release
2 months ago

Leapp EC2 Instance Connect Plugin

Introduction

This plugin aims to help developers and AWS users in general for remoting and forwarding into EC2 instance! This plugin source code inspiration (copy and edit) based on:

https://github.com/christian-calabrese/leapp-ssm-tunnels-plugin

How it works?

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 (test).

Plugin in action!

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

How to install?

  1. Open Settings (⚙)
  2. Click Plugins
  3. Type leapp-ec2-instance-connect-plugin in Insert an npm package name
  4. Click plus icon (⊕)

How to install

How to configure the plugin?

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"
  }
]

How to use?

  1. Configure the plugin (see How to configure the plugin? section)
  2. Create AWS session
  3. Right click on the session
  4. Choose Plugins
  5. Click Start EC2 instance connect

How to use

1.0.51

2 months ago

1.0.49

2 months ago

1.0.46

3 months ago

1.0.41

4 months ago

1.0.38

4 months ago

1.0.36

4 months ago

1.0.28

5 months ago

1.0.30

5 months ago

1.0.22

7 months ago

1.0.21

7 months ago

1.0.15

7 months ago

1.0.24

7 months ago

1.0.23

7 months ago

1.0.9-beta.1

12 months ago

1.0.10

12 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago