AWS API for humans
Project description
balcony
AWS API for us humans.
Balcony helps to lift the undifferentiated heavy lifting that is reading from AWS SDK & API.
Balcony fills out the required parameters for any operation, automatically.
Installation
pip3 install balcony
python3 -m pip install balcony
Basic Usage
List all available AWS Services
balcony aws
List all Resource Nodes of a Service
balcony aws iam
balcony aws ec2
See the documentation of a Resource Node and its Operations
balcony aws iam Policy -l
# or
balcony aws iam Policy --list
Read a Resource Node
balcony aws iam Policy
# if you are curious to see what's going on
# under the hood, enable the debug messages
balcony aws iam Policy -d
# or
balcony aws iam Policy --debug
Read a Resource Nodes specific operation
balcony aws iam Policy get
balcony aws iam Policy list
Filter generated parameters with UNIX style pattern matching
balcony aws iam Policy get -p "*service-role/*"
# supports multiple patterns
balcony aws iam Policy -p "*service-role/*" -p "*prod-*"
Use queries for the json data -- like jq
balcony aws iam Policy \
--jmespath-selector "GetPolicy[*].Policy"
# or
balcony aws iam Policy \
-js "GetPolicy[*].Policy"
Use --format option for customized output
# create stop-instances script for running instances
balcony aws ec2 Instances \
-js "DescribeInstances[*].Reservations[*].Instances[?State.Name=='running'][][]" \
--format "aws ec2 stop-instances --instance-ids {InstanceId} # {Tags}"
# create delete-policy script
balcony aws iam Policy \
--jmespath-selector "GetPolicy[*].Policy" \
--format "aws iam delete-policy --policy-arn {Arn}"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
balcony-0.0.67.tar.gz
(38.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
balcony-0.0.67-py3-none-any.whl
(44.5 kB
view details)
File details
Details for the file balcony-0.0.67.tar.gz.
File metadata
- Download URL: balcony-0.0.67.tar.gz
- Upload date:
- Size: 38.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.9 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57e92336385e3b88778e06b60e658689f025dd4c39849d28ed87b3987f8a8fd9
|
|
| MD5 |
3ef4883930b4be95ea06892f6ee8c05a
|
|
| BLAKE2b-256 |
3fb0ac424276174c925941300e63f22970cecf046ed6dce1d6186068a1ddbce9
|
File details
Details for the file balcony-0.0.67-py3-none-any.whl.
File metadata
- Download URL: balcony-0.0.67-py3-none-any.whl
- Upload date:
- Size: 44.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.9 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
124ebc7d63964f80a80dfe545ade25294aa589dcb00396ea3dbea6e06df4f203
|
|
| MD5 |
60f442b10500a6d8ce3c25140c9a28f7
|
|
| BLAKE2b-256 |
61e193d432221516e78def212cb8c846845d3295807f25688048007627f78abe
|