Provide secret keys to lambdas
Project description
@cloudcomponents/cdk-secret-key
Provide secret keys to lambdas
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-secret-key
Python:
pip install cloudcomponents.cdk-secret-key
How to use
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from cloudcomponents.cdk_secret_key import SecretKey
secret_key = SecretKey.from_plain_text(process.env.SECRET_KEY)
secret_key_string = secret_key.serialize()
See cloudcomponents/lambda-utils-nodejs for the counterpart in lambda functions
API Reference
See API.md.
Example
See more complete examples.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cloudcomponents.cdk-secret-key-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 632664979f384ab70134d09516dfeb967b4d2f0a94e1b3fc10b7f9061c42deee |
|
MD5 | 12cf1742b6f627c404da6367e53de3f8 |
|
BLAKE2b-256 | 42599d8f1dca29c8f0c0a50e29db96915bf1a7a181d4caac83a4918812121081 |
Close
Hashes for cloudcomponents.cdk_secret_key-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0ca1b9cc433221ea9068d1b4e98cabccf47e7da8e20e0e56c24e89bd6c7b4e8 |
|
MD5 | df6cbb7cf5a9fb6be9cec5450479c5e4 |
|
BLAKE2b-256 | 167c6be2ffe9133de56ed31c26f495229abc6cfc8c0a731993fe3d274fd2ba9b |