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
Metadata
Release files for ei-cli 0.16.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ei_cli-0.16.0.tar.gz | 276.2 kB | Without provenance | Details for ei_cli-0.16.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ei_cli-0.16.0-py3-none-any.whl | Python 3 | none | any | Details for ei_cli-0.16.0-py3-none-any.whl |
Total release size: 300.7 kB
Release files / ei_cli-0.16.0.tar.gz
| Download URL | ei_cli-0.16.0.tar.gz |
|---|---|
| Size | 276.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9de35a95340ee050f6499e15d2807c49e30380d704c6856fe749ce1240906388
|
|
BLAKE2b-256 checksum How to use checksums |
1ea1d85cb86938ecf9ef40c002afc8a277e8c282c29d66888a38ae27b715bc62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Release files / ei_cli-0.16.0-py3-none-any.whl
| Download URL | ei_cli-0.16.0-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d768013a7acd7ccd70701765ca802d4f5d69291e8e768f67c9bf1c0c0d103fd5
|
|
BLAKE2b-256 checksum How to use checksums |
ce81d12e5654cd29c0dc1e0bded692b9579afa6a24039de6be7ea8eb0a8da834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Security for ei-cli 0.16.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.