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.61.tar.gz
(38.7 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.61-py3-none-any.whl
(45.2 kB
view details)
File details
Details for the file balcony-0.0.61.tar.gz.
File metadata
- Download URL: balcony-0.0.61.tar.gz
- Upload date:
- Size: 38.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.8 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6295804ff3ac8f0de303e79820017bb73704570e12b03e0dcffe20621b0f4020
|
|
| MD5 |
3ea4ed597953efc1a15f96d43af7e9b9
|
|
| BLAKE2b-256 |
2aecf0b030e2a6c3b118a09bd025537ad8696147a2a7ce8c52797b2a1dc1eb07
|
File details
Details for the file balcony-0.0.61-py3-none-any.whl.
File metadata
- Download URL: balcony-0.0.61-py3-none-any.whl
- Upload date:
- Size: 45.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.8 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01331c217ea46eae70d90bc9d4a80e6f8bb5eb2e8e64ef6222a359e2855e601d
|
|
| MD5 |
abf52e09d6a386ec58d595f9ebf014e4
|
|
| BLAKE2b-256 |
15f09a56d9ad7ec454321b5913b59eb5bd636576f414e68dabf0c2a305005bb5
|