Skip to main content

No project description provided

Project description

aws-key-formatter

Project/Repo:

MIT License Supported Python Versions aws-key-formatter v0.0.4 PyPI Releases PyPI Downloads

Code Quality/CI:

Build Status

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.

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

aws-key-formatter-0.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

aws_key_formatter-0.2.0-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file aws-key-formatter-0.2.0.tar.gz.

File metadata

  • Download URL: aws-key-formatter-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for aws-key-formatter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 99a330f420495b501631b9e2ab2e64086876938ada747367a0e0d6ee55ab4b7d
MD5 be1f99581ed1a63b4c1d76b9333b7b68
BLAKE2b-256 675c2b56cbb44ef7ad04d3e39a97eac54ce9373aec77e1aa603093b35129ad5e

See more details on using hashes here.

File details

Details for the file aws_key_formatter-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: aws_key_formatter-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for aws_key_formatter-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bec4b9c33f125035b783f44a76f9b0377d6bf5fa30f43a18d9a7f5d38a4a0545
MD5 b3277520670840ddb293415eb7a6ace6
BLAKE2b-256 d3982615ec87f21688c52879ea3a5d25b97c7fc0b9740df858862846de6812c6

See more details on using hashes here.

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