Lambda utils for cloudcomponents cdk constructs
npm i @cloudcomponents/lambda-utils
import { SecretKey } from "@cloudcomponents/lambda-utils"; const secretKey = new SecretKey(process.env.SECRET_KEY_STRING as string); export const handler = async (event, context) => { const value = await secretKey.getValue(); return `Hello ${value}` }
See cdk-secret-key for the cdk counterpart
import { SecretKeyStore } from "@cloudcomponents/lambda-utils"; const secretKeyStore = new SecretKeyStore(process.env.SECRET_KEY_STORE_STRING as string); export const handler = async (event, context) => { const value = "secret" await secretKey.putValue(value); return `Hello` }
See cdk-secret-key for the cdk counterpart
