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.1.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file zalando-aws-cli-1.1.1.tar.gz
.
File metadata
- Download URL: zalando-aws-cli-1.1.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64d5a8efdb4236a52b9bc1370884d54a6c9a796ad85ba3d27d2e4435663d9008 |
|
MD5 | 646e2d1a8d0f337ea046ae760d39b762 |
|
BLAKE2b-256 | 8fa5e91820325c309ff20ec02c4061a3b6b43ecf11137201a2d71ca8b26b8222 |
Provenance
File details
Details for the file zalando_aws_cli-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: zalando_aws_cli-1.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6473735f00fbc576ee11f830f5131b30e1d9d520b7e2a98c1ba6b84dc6372084 |
|
MD5 | 30707e1375d11eef4b408163e0c88a28 |
|
BLAKE2b-256 | 6ea5a43a6e2ace5f7e0bcbb4a296481b812d5a66b9b3f2b0aaeadda4b5142283 |