UNPKG

cdk-secret-manager-wrapper-layer

Version:

that Lambda layer uses a wrapper script to fetch information from Secrets Manager and create environmental variables. > idea from [source](https://github.com/aws-samples/aws-lambda-environmental-variables-from-aws-secrets-manager)

13 lines (12 loc) 491 B
import * as lambda from 'aws-cdk-lib/aws-lambda'; import { Construct } from 'constructs'; export interface SecretManagerWrapperLayerProps { /** * The architecture for the Lambda function that will use this layer */ readonly lambdaArchitecture?: lambda.Architecture; } export declare class SecretManagerWrapperLayer extends Construct { readonly layerVersion: lambda.ILayerVersion; constructor(scope: Construct, id: string, props?: SecretManagerWrapperLayerProps); }