Skip to content

Latest commit

 

History

History

cdk-secret-key

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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