Skip to main content

Open ports in Security Groups for your current IP address

Project description

SG Sesame

Open ports in Security Groups for your current IP address

Installation

Install globally using pipx:

pipx install sg-sesame

Usage

Quickstart

Just install and run:

sg-sesame --port 22 --add

After the first run, you can omit the --add flag: sg-sesame --port 22.

If you have more than one Security Group with a rule for port 22, you will be asked to choose from a list.

Advanced usage

$ sg-sesame --help

Usage: sg-sesame [OPTIONS]

Options:
  --port INTEGER     [required]
  --note TEXT        Description of the rule to be added/updated. If omitted,
                     the machine hostname will be used.

  --add / --no-add   If not specified, will try to update an existing rule
                     that has matching `note`, `port` and `protocol`.
                     Otherwise will add a new rule.

  --group-name TEXT  If specified, the rule will be added to the Security
                     Group with this name. Otherwise will prompt the user to
                     select a SG.

  --protocol TEXT    Protocol to use for the rule  [default: tcp]
  --profile TEXT     AWS profile to use  [default: default]
  --region TEXT      AWS Region to connect to
  --help             Show this message and exit.

Credits

This package was created with Cookiecutter and the cs01/cookiecutter-pypackage project template.

Cookiecutter

cs01/cookiecutter-pypackage

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

sg-sesame-0.1.1.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

sg_sesame-0.1.1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

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