Skip to main content

aws cli for human

Project description

A[ei]WS CLI

AWS CLI for humans. PyPI version

codecov CI-Python-3.7 CI-Python-3.8 CI-Python-3.9 CI-Python-3.10 CI-Python-3.11

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

ei

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


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

Uploaded Source

Built Distribution

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

ei_cli-0.2.1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file ei_cli-0.2.1.tar.gz.

File metadata

  • Download URL: ei_cli-0.2.1.tar.gz
  • Upload date:
  • Size: 99.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for ei_cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6d4c87fdfa487880295bbc40b3562892fb8284871c7bf5a646e929177e90db10
MD5 9b181a006ff791c7c44b6e4ad59cb24b
BLAKE2b-256 dc93175a7b6b8a1c99b14a2f261e1f2df48fea97fd918f8d8e2fae18dda399b4

See more details on using hashes here.

File details

Details for the file ei_cli-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ei_cli-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for ei_cli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c0a8d28796cc4c24b4999206c1f538cbd63418f7176c038ddb05813a111f25b
MD5 f00b18f750b543e6ad701ff510dd8659
BLAKE2b-256 291c74b32520d96a045de4e080db2246a7e4bdeb8a621650748662d4942540a8

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