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.2.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file zalando-aws-cli-1.1.2.tar.gz
.
File metadata
- Download URL: zalando-aws-cli-1.1.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15e1e02fda43e4cb226a1901d5dc7731ede6e548fb35e7c431ed506f5443800d |
|
MD5 | f78d22b9f1700a8537caf6a5d6ef69ec |
|
BLAKE2b-256 | c31d30ea49d887658a6b9ac6265434a155a9ecc565dba6f9826296d200827095 |
Provenance
File details
Details for the file zalando_aws_cli-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: zalando_aws_cli-1.1.2-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf25f620fab9fc7bd6e0a355f41eb698e9aa1e704c7e3e9e29b6e9753213b1d |
|
MD5 | 04a1c9b1219db36f38daa0d51cefe9f6 |
|
BLAKE2b-256 | c6682c427fcb92fac09338f71c1ebdf871998a0a8470665071c8996aac2ee4f1 |