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

Uploaded Source

Built Distribution

zalando_aws_cli-1.1.5-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for zalando-aws-cli-1.1.5.tar.gz
Algorithm Hash digest
SHA256 de8ad3fd1a496c555da1b6ad23954a587eeb21b4f601dc1d14b8528b82a7004a
MD5 b2d57ce59eee9e13757488e0b4b659b9
BLAKE2b-256 3bfc775d5d81b1992a01463b55808f95c6610187841e02f9ccd2538319e13db5

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for zalando_aws_cli-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f4b15aaceda92de1ceb8482c9e416a04ea4f759c527cc5f4df2bf580d40805c8
MD5 b6546be44e0306e3371dc88f0c7ffc11
BLAKE2b-256 f4d39d59311a7ea75767fe742309e07fe487a624670d8379c8addd1b1c025a8c

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