Skip to main content

Provide secret keys to lambdas

Project description

cloudcomponents Logo

@cloudcomponents/cdk-secret-key

Build Status cdkdx typescript python

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

MIT

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

cloudcomponents.cdk-secret-key-1.15.0.tar.gz (48.3 kB view hashes)

Uploaded Source

Built Distribution

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