AWS login CLI
Project description
This package provides the zaws command line utility to exchange OAuth tokens for temporary AWS credentials by calling the AWS Credentials Service.
Installation
The zalando-aws-cli package is part of the stups bundle:
$ sudo pip3 install -U stups
$ stups configure
Usage
$ zaws list # list all allowed account roles
$ zaws login myacc RoleName # write ~/.aws/credentials
You can configure your default account/role to only run zaws:
$ zaws set-default myacc RoleName
$ zaws
There are multiple ways of abbreviating the command line:
$ zaws li # command can be abbreviated
$ zaws login myacc # only the account name is needed if you have only one role
$ zaws alias myalias myacc PowerUser # create an alias
$ zaws lo myalias # use the alias
Use -h to get a list of commands and help:
$ zaws -h # list top-level commands
$ zaws login -h # help on the "login" command
Running locally
You can run the module directly during development:
$ python3 -m zalando_aws_cli list
$ python3 -m zalando_aws_cli login myacc PowerUser
Unit tests
$ sudo pip3 install tox
$ tox
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
Built Distribution
File details
Details for the file zalando-aws-cli-1.2.7.35.tar.gz
.
File metadata
- Download URL: zalando-aws-cli-1.2.7.35.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c6f3434f2d51de585892cdff701204b39ccaa383c5fd50ca9e4ba4b2c0900f3 |
|
MD5 | edd379e3dd0976eefb918a583506ffeb |
|
BLAKE2b-256 | e9c748bc9208ed017bc5b20251505fc028a110180b3adfd58e994bede487711b |
Provenance
File details
Details for the file zalando_aws_cli-1.2.7.35-py3-none-any.whl
.
File metadata
- Download URL: zalando_aws_cli-1.2.7.35-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d82ae18b7b989c6797ead2ac2a4f0138539559104822283804884de7da2cce5e |
|
MD5 | 4c09d9b583e66bbef6a0afb37a657d12 |
|
BLAKE2b-256 | d9d3fd18e25f6bc883a508bb24abe653f617008c50738611cf19d9e503136da4 |