Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Command line client for aws federation proxy api

Project Description

Overview

The AFP CLI is the command line interface to access the AWS Federation Proxy.

Its main use case is starting a new shell where your temporary AWS credentials have been exported into the environment.

Configuration

The afp-cli command can be globally configured with a yaml file:
/etc/aws-federation-client/api.yaml
Syntax:
api_url: <api-url>
Each user’s home directory can override this setting in the same way, using
$HOME/.aws-federation-client/api.yaml

CLI Tool

Get help text

aws-cli [-h | --help]

List available account names and roles

For the currently logged-in user:
aws-cli
The same for another user:
aws-cli --user=username
Output format:
<accountname>    <role1>,<role2>,...,<roleN>

Example output:

abc_account     some_role_in_abc_account
xyz_account     some_role_in_yxz_account,another_role_in_xyz

Export credentials

This starts a subshell in which the credentials have been exported into the environment. Use the “exit” command or press CTRL+D to terminate the subshell.

Export credentials for currently logged in user and specified account and role
afp-cli --account=accountname --role=rolename
As above, but specifying a different user:
afp-cli --user=username --account=accountname --role=rolename
Specify the URL of the AFP server, overriding any config file
afp-cli --api-url=https://yourhost/some/path .....
Release History

Release History

This version
History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.1-0

History Node

1.0.0-63

History Node

1.0.0-62

History Node

1.0.0-61

History Node

1.0.0-0

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
afp-cli-1.0.8.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Aug 27, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting