No project description provided
This CLI will take your AWS credentials and output them in various formats.
The initial use case is for displaying your AWS credentials for use as the
Authorization parameter in several AWS Redshift commands.
See Use Cases for all possible output formats.
aws-key-formatter can be installed by running:
pip install aws-key-formatter
It requires Python 3.6+ to run.
You can, also, install via
pipx install aws-key-formatter
To use your AWS credentials as the
Authorization parameter in a Redshift
command (See the Redshift docs):
$ aws-key-formatter redshift ACCESS_KEY_ID '<access-key-id>' SECRET_ACCESS_KEY '<secret-access-key>' # If you want the session token included as well $ aws-key-formatter redshift --token ACCESS_KEY_ID '<access-key-id>' SECRET_ACCESS_KEY '<secret-access-key>' SESSION_TOKEN '<temporary-token>'
To use your AWS credentials as environment variables:
$ aws-key-formatter env AWS_ACCESS_KEY_ID=<access-key-id> AWS_SECRET_ACCESS_KEY=<secret-access-key> # If you want the session token included as well $ aws-key-formatter env --token ACCESS_KEY_ID=<access-key-id> SECRET_ACCESS_KEY=<secret-access-key> SESSION_TOKEN=<temporary-token>
- Made it to be
- Added some initial installation/usage docs to README
- Setup to be built & deployed to pypi via Travis CI
Copyright 2019 Kelton Karboviak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for aws_key_formatter-0.2.0-py2.py3-none-any.whl