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
zalando-aws-cli-1.1.7.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file zalando-aws-cli-1.1.7.tar.gz
.
File metadata
- Download URL: zalando-aws-cli-1.1.7.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f42a3751b9309d8a82807c94ce80bd5bd35f468fb30cfb2d8e673039860888a1 |
|
MD5 | d47c29bbfd90fb3ac74e27365960ba90 |
|
BLAKE2b-256 | 5e246caeba688f02bc4193cbbb39c3ea406754e74c19929032b08ff59828f7ba |
Provenance
File details
Details for the file zalando_aws_cli-1.1.7-py3-none-any.whl
.
File metadata
- Download URL: zalando_aws_cli-1.1.7-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 659b19433c384f3b668836db152cdd0e3a1ba31410809b51496d0f32a6069438 |
|
MD5 | f508cdee8311aed3473be40797177a3b |
|
BLAKE2b-256 | eb9fcaa4b21ba71854cd65ba2f34133c8efdfb92f36904fbdb32ef5cb345d349 |