Skip to content

Repository files navigation

cloudcomponents Logo

@cloudcomponents/lambda-utils

Build Status

Lambda utils for cloudcomponents cdk constructs

Install

npm i @cloudcomponents/lambda-utils

How to use

SecretKey

import{SecretKey}from"@cloudcomponents/lambda-utils";constsecretKey=newSecretKey(process.env.SECRET_KEY_STRINGasstring);exportconsthandler=async(event,context)=>{constvalue=awaitsecretKey.getValue();return`Hello ${value}`}

See cdk-secret-key for the cdk counterpart

SecretKeyStore

import{SecretKeyStore}from"@cloudcomponents/lambda-utils";constsecretKeyStore=newSecretKeyStore(process.env.SECRET_KEY_STORE_STRINGasstring);exportconsthandler=async(event,context)=>{constvalue="secret"awaitsecretKey.putValue(value);return`Hello`}

See cdk-secret-key for the cdk counterpart

License

MIT

About

Lambda utils for cloudcomponents cdk constructs

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages