aws cli for human
Project description
A[ei]WS CLI
Installation
Install via pypi
pip install ei-cli
Install via github
pip install git+https://github.com/ashon/ei
Configuration
# set environment variables
# comma seperated account ids
EI_ACCOUNT_IDS='000000000000,111111111111'
# comma seperated region list
EI_REGIONS='ap-northeast-1,ap-northeast-2,ca-central-1,eu-west-2'
# sts assume role pattern for cross account
EI_ASSUME_ROLE_ARN_PATTERN='arn:aws:iam::{account_id}:role/my-awesome-role'
EI_ASSUME_ROLE_SESSION_NAME='AssumeRoleEi'
# use aws-vault for resolve aws environment vars
AWS_REGION=None
AWS_ACCESS_KEY_ID=None
AWS_SECRET_ACCESS_KEY=None
AWS_SECURITY_TOKEN=None
AWS_SESSION_EXPIRATION=None
Run
Using aws-vault for cross account, region resource retrieving.
# list vpcs across all regions, and all accounts ($EI_REGIONS, $EI_ACCOUNT_IDS)
$ aws-vault exec {aws-vault-profile} -- ei ec2 vpc list --all-regions --all-accounts
# same as ec2
$ aws-vault exec {aws-vault-profile} -- ei ec2 instance list --all-regions --all-accounts
...
Development
This project controlled by Hatch.
$ pip install hatch
# install package as editable mode
$ pip install -e .
# testing commands
$ hatch run lint
$ hatch run test
$ hatch run typecheck
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
ei_cli-0.2.0.tar.gz
(99.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
ei_cli-0.2.0-py3-none-any.whl
(19.4 kB
view details)
File details
Details for the file ei_cli-0.2.0.tar.gz.
File metadata
- Download URL: ei_cli-0.2.0.tar.gz
- Upload date:
- Size: 99.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d11d28c747e7c777cc1690362be50f73b577e2c8f70f26a3f3f922b98e46da5
|
|
| MD5 |
2831c2989b7e785a11faaf9c2d96d154
|
|
| BLAKE2b-256 |
9b80fdbc012565010e9a9f703a6172d5153beb9269c12132be9ebb9968e6182d
|
File details
Details for the file ei_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ei_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
708e2a2cfe1585a854e5a89c40034c8db005f6d4ba4f6b65d084ed38c1c65fb3
|
|
| MD5 |
54770b00fcc92f0a34ae1113ea0f5541
|
|
| BLAKE2b-256 |
e382bd880cb1e15f86d1fe836cd5f6481d04637ac426c259dc5eff11c5d4080d
|