AWS CDK construct that creates a Lambda layer wrapping AWS Secrets Manager for easy secret rotation and retrieval. Currently version 2.1.304, requires Python ~=3.9. Release cadence is frequent, often multiple versions per month.
pip install cdk-secret-manager-wrapper-layerVerified import paths — ran on the pinned version, not inferred.
Minimal CDK app to deploy the Lambda layer.
Use aws-cdk-lib instead of @aws-cdk/ packages. Update your CDK app to v2.
Replace deprecated construct with SecretManagerWrapperLayer.
Ensure your Lambda function uses Python 3.9 runtime.
Run 'pip install cdk-secret-manager-wrapper-layer' in your environment.
Use correct import: 'from cdk_secret_manager_wrapper_layer import SecretManagerWrapperLayer'
Ensure you are using aws-cdk-lib (CDK v2) with version 2.x of the construct.