Registry / aws / cdk-secret-manager-wrapper-layer

cdk-secret-manager-wrapper-layer

JSON →
library2.1.304pypypi✓ verified 86d ago

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-layer
INSTALL
IMPORT
SIG · CDK-SECRET-MANAGER
C
cdk-secret-manager-wrapper-layer
awspythonv2.1.304
Install
17.6s avg
Import
Disk
399MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.1.304 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 361MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 17.6s · import 0.000s · 361MB
399MB installed
● package 399MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SecretManagerWrapperLayer
from cdk_secret_manager_wrapper_layer import SecretManagerWrapperLayer
from cdk_secret_manager_wrapper_layer.secret_manager_wrapper_layer import SecretManagerWrapperLayer
Older docs or examples may show deeper nesting; the top-level import is correct.

Minimal CDK app to deploy the Lambda layer.

from aws_cdk import App, Stack from cdk_secret_manager_wrapper_layer import SecretManagerWrapperLayer app = App() stack = Stack(app, 'TestStack', env={'region': 'us-east-1'}) SecretManagerWrapperLayer(stack, 'MyLayer') app.synth()
Debug
Known issues
breakingVersion 2.x switched to AWS CDK v2. If upgrading from 1.x, you must migrate your CDK app to CDK v2.
fix
Use aws-cdk-lib instead of @aws-cdk/ packages. Update your CDK app to v2.
affects: >=2.0.0
deprecatedThe construct name 'SecretManagerWrapper' (without 'Layer') was used in early versions and is now deprecated. Use 'SecretManagerWrapperLayer' instead.
fix
Replace deprecated construct with SecretManagerWrapperLayer.
affects: <2.0.0
gotchaThe layer is intended for Python 3.9 Lambda runtimes. Using other runtimes may cause incompatibility.
fix
Ensure your Lambda function uses Python 3.9 runtime.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'cdk_secret_manager_wrapper_layer'
Package not installed in the current environment.
fix
Run 'pip install cdk-secret-manager-wrapper-layer' in your environment.
AttributeError: module 'cdk_secret_manager_wrapper_layer' has no attribute 'SecretManagerWrapperLayer'
Using an outdated import path or wrong class name.
fix
Use correct import: 'from cdk_secret_manager_wrapper_layer import SecretManagerWrapperLayer'
jsii.errors.JSIIError: ... does not exist in ...
Mismatch between CDK version and layer version (CDK v1 vs v2).
fix
Ensure you are using aws-cdk-lib (CDK v2) with version 2.x of the construct.
Upgrade
Version history
2.1.304latest on PyPI · released Mar 19, 2026
Audit
Dependencies
aws-cdk-librequiredCore CDK library required for all constructs.
constructsrequiredBase class for CDK constructs.
Agent activity
20 hits · last 30 days
node
20
Resources