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.0.2.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for zalando_aws_cli-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dd3e5c8eacd6609e9ffd5db9e59ab7243bbb08afb5d2db4dde64da7b73f72f1 |
|
MD5 | 113f8e06c54be8bf7c15fed5e6d24b75 |
|
BLAKE2b-256 | 0515086319b07f26a470db728e7e6c9ffc53649022b0bc792007ec9ccaf5cab6 |