Skip to main content

This is a plugin for awsume that allows you to configure the default profile.

Project description

Awsume Default Profile Plugin

Awsume 4 only.

This is a plugin that let's you specify a different default profile to use when invoking awsume without a specified profile name.

Installation

Install with pip

$ pip install awsume-default-profile-plugin

Note: this will only work if you have also installed awsume with pip; the plugin will not be included if you installed awsume with brew.

Configuration

Configure this plugin to override the default profile name selected when no profile_name positional argument is specifed in the call to awsume. The plugin will use the following values:

  1. The value of the AWSUME_DEFAULT_PROFILE environment variable if set, or

  2. The value of the default-profile key in your ~/.awsume/config.yaml if set, or

  3. The value "default".

If a profile_name or role_arn argument is supplied to awsume, this plugin will not do anything.

Usage

I'm using direnv to set the AWSUME_DEFAULT_PROFILE for specific directories so I can just call awsume without having to specific a specific profile each time (auto-complete just feels a little too slow for me).

Development

After making changes, test by installing the plugin locally. From the repo run:

$ pip install .

To publish changes:

# Don't forget to increment the version number
$ python setup.py sdist bdist_wheel
$ python -m twine upload dist/*
# Clean up build artifacts
$ git clean -xdf

See https://packaging.python.org/tutorials/packaging-projects/ for more detail.

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

awsume-default-profile-plugin-0.1.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

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