Skip to main content

aws cli for human

Project description

A[ei]WS CLI

aws cli for humans

Installation

Install via pypi

pip install ei-cli

Install via github

pip install git+https://github.com/ashon/ei@0.0.10

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 --help

# ec2 commands
$ ei ec2 list
$ ei ec2 show {instance-id}

# vpc commands
$ ei vpc list
$ ei vpc show {vpc-id}

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 vpc list --all-regions --all-accounts

# same as ec2
$ aws-vault exec {aws-vault-profile} -- ei ec2 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.0.10.tar.gz (1.1 MB 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.0.10-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ei_cli-0.0.10.tar.gz
Algorithm Hash digest
SHA256 b9cf76ba7ccf7103a0e7a269983fb6051a2c631a3b968116fb8443ff2fcc55c5
MD5 d06b0c8a05a330b11d7be099c8b24780
BLAKE2b-256 471c2db0dbc8df5b92490ea621fac26b3132a49d36e8961e7174e96eb6b085f8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ei_cli-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 867f35415b59f3ba626e35c728dc9069044787a5a03d93299d5bce76486c58e7
MD5 5e4e16c5d8ce87dfe01cd1e0762e770e
BLAKE2b-256 8a3791cb263c441ddf6480028fc0ae17e9681cb0e899bdba7845fcc674768df1

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