{"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,"search_vec":"'2.1.304':26 '3.9':29 'aw':6,15,39 'cadenc':31 'cdk':1,7,40 'construct':8 'creat':10 'current':24 'easi':19 'frequent':33 'lambda':12,45 'lambda-lay':44 'layer':5,13,46 'manag':3,17,43 'month':38 'multipl':35 'often':34 'per':37 'python':28 'releas':30 'requir':27 'retriev':23 'rotat':21 'secret':2,16,20,42 'secret-manag':41 'version':25,36 'wrap':14 'wrapper':4","created_at":"2026-04-27T16:57:42.936828+00:00","updated_at":"2026-04-27T16:57:42.936828+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.1.304","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/neilkuan/cdk-secret-manager-wrapper-layer.git","docs":null,"changelog":null,"pypi":"https://pypi.org/project/cdk-secret-manager-wrapper-layer/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["aws","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-06-28","next_check":"2026-07-28","install_tag":null}}