A command line utility to update AWS Security Groups rules.
Project description
A command line utility to update AWS Security Groups rules.
Free software: GNU General Public License v3
Documentation: https://ip-liberator.readthedocs.io.
Features
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).
Installation
$ pip install ip-liberator
Quickstart
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": [
"sg-<GROUP_ID_1>",
"sg-<GROUP_ID_2>"
]
}
}
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 192.30.253.112/32
- sg-<GROUP_ID_1>
- sg-<GROUP_ID_2>
Credits
Authors
Wagner Macedo <wagnerluis1982@gmail.com> (maintainer)
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
Built Distribution
File details
Details for the file ip-liberator-0.2.4.tar.gz
.
File metadata
- Download URL: ip-liberator-0.2.4.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0b1 CPython/3.7.3 Linux/4.15.0-65-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e87d21c1ec95765a62c4aafc8525702ce281c805181f1890ab698daea19ea746 |
|
MD5 | c4205ee75cd78efb706fc261d5cdf37a |
|
BLAKE2b-256 | 28a0ea8e23132b2a52a9ca3e39563509e8624595f68cf89415693fcd82c6853b |
File details
Details for the file ip_liberator-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: ip_liberator-0.2.4-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0b1 CPython/3.7.3 Linux/4.15.0-65-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f1c6438201dec59fd15287ea6b65d405e22c9309911a1746ce12722fb95205 |
|
MD5 | 6dd23ef052266e3f3e1f07afb4b3f1f8 |
|
BLAKE2b-256 | 43f596808c28ce78a455b1d8298364d2cdac09dd3fb38ae696b6fd793f4bf3e3 |