Skip to content

Python library for resolving secrets from AWS Secrets Manager

License

Notifications You must be signed in to change notification settings

davidcroda/aws_secrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Secrets

This library allows you to use credentials stored in AWS Secrets Manager within your code. It will lazily resolve secret values when they are evaluated, or resolve all secrets when AWSCredential.resolve_secrets() is called.

Usage

from aws_secrets import AWSCredential
db = AWSCredential('path/to/key')

# credential is resolved here
print(db['username'])

secret_one = AWSCredential('path/to/key_one')
secret_two = AWSCredential('path/to/key_one')

# both credentials are resolved here
AWSCredential.resolve_secrets()
print(secret_one)
print(secret_two)

About

Python library for resolving secrets from AWS Secrets Manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages