Skip to main content

system for quickly updating AWS credentials and importing them into Python scripts

Project description

aws_credentials

System for quickly importing AWS credentials into Python scripts

Documentation
PyPI


Installation

pip install kabbes_aws_credentials


Usage

For more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.

import aws_credentials
role = 'myawsrole'
print ( aws_credentials.Creds[ role ].dict )
>>> { 'aws_access_key_id': 'XXXXXX', 'aws_secret_access_key': 'XXXXXX' }

Updating AWS Credentials


1. Copy credentials in this format to your clipboard

[aws_role]

aws_access_key_id=XXXXXX

aws_secret_access_key=XXXXXX

2. Run one of the following

  • python -m aws_credentials
  • aws_credentials.update()

3. Verify the aws_credentials/aws_creds.txt file is updated


Author

James Kabbes

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

kabbes_aws_credentials-0.9.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

kabbes_aws_credentials-0.9.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

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