Skip to main content

A command line utility to update AWS Security Groups rules.

Project description

IP Liberator Documentation Status

A command line utility to update AWS Security Groups rules.


  • Update a list of security groups of your AWS account at once.
  • Grant access to informed ports for your current IP address or an informed IP.
  • Read profile files in JSON with all the information needed to contact.
  • Fit for use as script (e.g. to update your dynamic IP regularly).


$ pip install ip-liberator


Consider a file /path/my-profile.json with the following content:

  "credentials": {
    "access_key": "<AWS_ACCESS_KEY>",
    "secret_key": "<AWS_SECRET_KEY>",
    "region_name": "<AWS REGION>"
  "config": {
    "operator": "John",
    "services": [
        "name": "FTP+SFTP",
        "port": "21-22"
        "name": "HTTPS",
        "port": "443"
    "security_groups": [

Using the profile defined above will create or update two entries in the informed security groups:

  • John FTP+SFTP granting access for the current IP the ports 21 and 22.
  • John HTTPS granting access for the current IP the port 443.

To accomplish it, simply run:

$ ip-liberator --profile /path/my-profile.json
Authorizing rules ['John FTP+SSH', 'John HTTPS'] to IP
- sg-<GROUP_ID_1>
- sg-<GROUP_ID_2>




All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.2.0 (2019-04-19)

This release marks as the first to be published to PyPI.

No new functionality was added. The version was changed was to place a history mark.

  • Added documentation.
  • Added full coverage tests.
  • Code refactoring.

0.1.1 (2018-10-16)

  • Better console output.
  • Added option --revoke-only.
  • Don’t reauthorize if the IP address is already in the security group.
  • Authorizing and revoking in batch to be more efficient.
  • Bugfixes

0.1.0 (2018-09-27)

  • Added option --my-ip to inform an IP address explicitly.
  • Show in console the security groups being processed.
  • Allow use as script by reading JSON as external config.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ip_liberator-0.2.1-py2.py3-none-any.whl (8.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3
ip-liberator-0.2.1.tar.gz (21.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page