aws-key-formatter
Project/Repo:
Code Quality/CI:
Overview
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.
Installation
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:
pipx install aws-key-formatter
Usage
Redshift
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>'
Environment Variables
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>
Contributing
Changelog
0.1.0 (2019-08-09)
- Made it to be
pip-installable - Added some initial installation/usage docs to README
- Setup to be built & deployed to pypi via Travis CI
License
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.
Release files for aws-key-formatter 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aws-key-formatter-0.2.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_key_formatter-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 10.9 kB
Release files / aws-key-formatter-0.2.0.tar.gz
| Download URL | aws-key-formatter-0.2.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99a330f420495b501631b9e2ab2e64086876938ada747367a0e0d6ee55ab4b7d
|
|
BLAKE2b-256 checksum How to use checksums |
675c2b56cbb44ef7ad04d3e39a97eac54ce9373aec77e1aa603093b35129ad5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.1
|
Release files / aws_key_formatter-0.2.0-py2.py3-none-any.whl
| Download URL | aws_key_formatter-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bec4b9c33f125035b783f44a76f9b0377d6bf5fa30f43a18d9a7f5d38a4a0545
|
|
BLAKE2b-256 checksum How to use checksums |
d3982615ec87f21688c52879ea3a5d25b97c7fc0b9740df858862846de6812c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.1
|