{"id":21027,"library":"cdk-secret-manager-wrapper-layer","title":"CDK Secret Manager Wrapper Layer","description":"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.","status":"active","version":"2.1.304","language":"python","source_language":"en","source_url":"https://github.com/neilkuan/cdk-secret-manager-wrapper-layer.git","tags":["aws","cdk","secret-manager","lambda-layer"],"install":[{"cmd":"pip install cdk-secret-manager-wrapper-layer","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core CDK library required for all constructs.","package":"aws-cdk-lib","optional":false},{"reason":"Base class for CDK constructs.","package":"constructs","optional":false}],"imports":[{"note":"Older docs or examples may show deeper nesting; the top-level import is correct.","wrong":"from cdk_secret_manager_wrapper_layer.secret_manager_wrapper_layer import SecretManagerWrapperLayer","symbol":"SecretManagerWrapperLayer","correct":"from cdk_secret_manager_wrapper_layer import SecretManagerWrapperLayer"}],"quickstart":{"code":"from aws_cdk import App, Stack\nfrom cdk_secret_manager_wrapper_layer import SecretManagerWrapperLayer\n\napp = App()\nstack = Stack(app, 'TestStack', env={'region': 'us-east-1'})\nSecretManagerWrapperLayer(stack, 'MyLayer')\napp.synth()","lang":"python","description":"Minimal CDK app to deploy the Lambda layer."},"warnings":[{"fix":"Use aws-cdk-lib instead of @aws-cdk/ packages. Update your CDK app to v2.","message":"Version 2.x switched to AWS CDK v2. If upgrading from 1.x, you must migrate your CDK app to CDK v2.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Replace deprecated construct with SecretManagerWrapperLayer.","message":"The construct name 'SecretManagerWrapper' (without 'Layer') was used in early versions and is now deprecated. Use 'SecretManagerWrapperLayer' instead.","severity":"deprecated","affected_versions":"<2.0.0"},{"fix":"Ensure your Lambda function uses Python 3.9 runtime.","message":"The layer is intended for Python 3.9 Lambda runtimes. Using other runtimes may cause incompatibility.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install cdk-secret-manager-wrapper-layer' in your environment.","cause":"Package not installed in the current environment.","error":"ModuleNotFoundError: No module named 'cdk_secret_manager_wrapper_layer'"},{"fix":"Use correct import: 'from cdk_secret_manager_wrapper_layer import SecretManagerWrapperLayer'","cause":"Using an outdated import path or wrong class name.","error":"AttributeError: module 'cdk_secret_manager_wrapper_layer' has no attribute 'SecretManagerWrapperLayer'"},{"fix":"Ensure you are using aws-cdk-lib (CDK v2) with version 2.x of the construct.","cause":"Mismatch between CDK version and layer version (CDK v1 vs v2).","error":"jsii.errors.JSIIError: ... does not exist in ..."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}