Skip to main content

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


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-0.23.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

zalando_aws_cli-0.23-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file zalando-aws-cli-0.23.tar.gz.

File metadata

File hashes

Hashes for zalando-aws-cli-0.23.tar.gz
Algorithm Hash digest
SHA256 2bd5a931f6a3ce928b6c3a5fbba3845022e24e0f6ab800f877d925ddf1fb82a7
MD5 4f6802418b064c34584d53c7abfc8a2b
BLAKE2b-256 f1ed22b2690ed6b8b1ad9b5f10a7c7122c4c76ea7b8fd0041e62928dceae5017

See more details on using hashes here.

Provenance

File details

Details for the file zalando_aws_cli-0.23-py3-none-any.whl.

File metadata

File hashes

Hashes for zalando_aws_cli-0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 b8fdf2a06d3e575cd654fa0176f5f53d2ea39dd49fa907e4d2b05357b15d7c38
MD5 7ca5e8f235b213cec00e7e7fe0d9a70c
BLAKE2b-256 6c3a0402316b268f6c779eff0043657afa9719427693ee73328e1593c30722ec

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page