Skip to main content

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.66.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

balcony-0.0.66-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

Details for the file balcony-0.0.66.tar.gz.

File metadata

  • Download URL: balcony-0.0.66.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.9 Darwin/22.1.0

File hashes

Hashes for balcony-0.0.66.tar.gz
Algorithm Hash digest
SHA256 b17660b98d4afccb6ad274bd8d1032afd7a4ee04f453d251aaec5ba313894d57
MD5 588b6590fa9bbe829ff302216d48d1eb
BLAKE2b-256 18a3100499114c3057dd8480609851a96644f76fa538e1bb4742c6da9ae3453e

See more details on using hashes here.

File details

Details for the file balcony-0.0.66-py3-none-any.whl.

File metadata

  • Download URL: balcony-0.0.66-py3-none-any.whl
  • Upload date:
  • Size: 46.2 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

Hashes for balcony-0.0.66-py3-none-any.whl
Algorithm Hash digest
SHA256 8eaf859e365c58f6787e581a338b0488b126e7f7d2f944695d78bb0e17b86628
MD5 dea223642795aa370c21055de80ed2d2
BLAKE2b-256 fb7fafee06883b89bcc1b5181369fc9db88f309b0a5f0622596358069ad5ad97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page