Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.
/ zalando-aws-cli Public archive
forked from a1exsh/zalando-aws-cli

CLI to authenticate and write temporary AWS credentials

License

Notifications You must be signed in to change notification settings

hjacobs/zalando-aws-cli

 
 

Repository files navigation

Zalando AWS CLI

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

About

CLI to authenticate and write temporary AWS credentials

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.3%
  • Shell 1.7%