Skip to main content

A command line utility to update AWS Security Groups rules.

Project description 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>



Project details

Download files

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

Files for ip-liberator, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size ip_liberator-0.2.4-py3-none-any.whl (18.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ip-liberator-0.2.4.tar.gz (15.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page