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:
-
The value of the
AWSUME_DEFAULT_PROFILE
environment variable if set, or -
The value of the
default-profile
key in your~/.awsume/config.yaml
if set, or -
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for awsume-default-profile-plugin-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b307bd356bddebf240727af07ca12d6da5fdeb6d3c31aa9e2758892e23fc8fc |
|
MD5 | c908ee8d4d9de3d5b51c0248e382e0bb |
|
BLAKE2b-256 | 9eeaaa9b6d702da02f55c4e9413bc1a2466d25c9d036c5ea8d6c454566b66e04 |
Hashes for awsume_default_profile_plugin-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f96e3bf5bb8d4d21f2dcfda2fb3c674a62214d15625e83f04a4f59e611a8abac |
|
MD5 | fb130258a93ccb6b06eae8f4c6d79e77 |
|
BLAKE2b-256 | 729e4f6a32e88e12c23bd3dec2581eda70e7f57e67b67bdee8c7b5310d799d2f |