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

import { SecretKey } from '@cloudcomponents/cdk-secret-key';

const secretKey = SecretKey.fromPlainText(process.env.SECRET_KEY as string);
const secretKeyString = secretKey.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-2.1.0.tar.gz (131.0 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