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.4.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file zalando-aws-cli-1.1.4.tar.gz
.
File metadata
- Download URL: zalando-aws-cli-1.1.4.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a14945d0b2c4c23870744de3ed18650b5c7ed294b56607f202ad520ae44a7e4d |
|
MD5 | 8139277eb05ce0034111199716943f78 |
|
BLAKE2b-256 | 18986db4b9d093cb0c530915307ad21fbf141efb3b6b87be9772046ba8da182d |
Provenance
File details
Details for the file zalando_aws_cli-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: zalando_aws_cli-1.1.4-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c638d441ca0ed8558615716cc22ead9b95104db08b50a0626b15af235d53b808 |
|
MD5 | 5a485824fe47e956ddf034a16d37022b |
|
BLAKE2b-256 | 5d88131251e68d4647d231851e7778157bfc6c67059e5e1a34d49643b8e2fe5f |