Skip to main content

Creates multiple background SSH tunnels for services within a project and stage.

Project description

mtunnel

Creates multiple background SSH tunnels for services within a project and stage.

installation

Install the package from PyPI:

pip3 install mtunnel

usage

For example:

With this config in mtunnel.yml:

jumpbox:
  ssh_address: bastion.example.com
  dont_sudo: true

region: us-east-1

projects:
  project1:
    profile: default
    stages:
      staging:
        mysql:
          bind_port: 3306
          host_address: staging-rds-0.us-east-1.rds.amazonaws.com
          host_port: 3306
        es:
          bind_port: 9200
          host_address: vpc-staging-abcdefghijkl.us-east-1.es.amazonaws.com
          host_port: 443

when you run this command:

mtunnel project1 staging

the following SSH tunnels will be setup via bastion.example.com:

mysql: localhost:3306 -> staging-rds-0.us-east-1.rds.amazonaws.com:3306
es: localhost:9200 -> vpc-staging-rds-abcdefghijkl.us-east-1.es.amazonaws.com:443

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

mtunnel-0.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

mtunnel-0.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file mtunnel-0.0.0.tar.gz.

File metadata

  • Download URL: mtunnel-0.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mtunnel-0.0.0.tar.gz
Algorithm Hash digest
SHA256 ddc35f738ee29d97e67fbf4cd4a796f494819b53239382c6e5cd5ff4bd0a5aa9
MD5 d327cb4ac1752bc5fc7deb5303b66359
BLAKE2b-256 4ad4cd3822bf370baa658d27b68d54eaf46bca46e8ebd33741374ef664e11629

See more details on using hashes here.

File details

Details for the file mtunnel-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: mtunnel-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mtunnel-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46b09206f450a4572c217b1fe5ed0490faed33c09471845ab5f9fc93dcd68016
MD5 38d534d076deedb32fcd34eaf1696416
BLAKE2b-256 f3a5f7192aa16047a41e40206345b1825a0b3dfcfaa72a6533e9cf4215b795e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page