{"id":23404,"library":"cdk-lambda-layer-curl","title":"CDK Lambda Layer Curl","description":"AWS CDK construct that packages the curl binary as a Lambda Layer for Python 3.8+ runtimes. Current version 2.0.838. Pre-built layer version is published alongside.","status":"active","version":"2.0.838","language":"python","source_language":"en","source_url":"https://github.com/clarencetw/cdk-lambda-layer-curl.git","tags":["aws","cdk","lambda-layer","curl"],"install":[{"cmd":"pip install cdk-lambda-layer-curl","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"AWS CDK library required to use the construct.","package":"aws-cdk-lib","optional":false},{"reason":"Base constructs library required.","package":"constructs","optional":false}],"imports":[{"note":"","wrong":"","symbol":"CurlLayer","correct":"from cdk_lambda_layer_curl import CurlLayer"}],"quickstart":{"code":"from aws_cdk import App, Stack\nfrom cdk_lambda_layer_curl import CurlLayer\n\napp = App()\nstack = Stack(app, \"MyStack\")\n\ncurl_layer = CurlLayer(stack, \"CurlLayer\")\n\n# Use curl_layer.layer_version to attach to a Lambda function\napp.synth()","lang":"python","description":"Creates a Curl Lambda Layer in your stack."},"warnings":[{"fix":"Check the README for region availability or consider building from source using Docker.","message":"The construct uses pre-built layers for specific regions. If deploying in a region not supported, you must build the layer yourself from source.","severity":"gotcha","affected_versions":"all"},{"fix":"Update imports: `from cdk_lambda_layer_curl import CurlLayer`","message":"In version 2.0+, the import path changed from `cdk_lambda_layer_curl.curl` to `cdk_lambda_layer_curl` directly.","severity":"breaking","affected_versions":"<2.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install cdk-lambda-layer-curl` and use `from cdk_lambda_layer_curl import CurlLayer`.","cause":"The library is not installed or the wrong import path used.","error":"ModuleNotFoundError: No module named 'cdk_lambda_layer_curl'"},{"fix":"Give each CurlLayer instance a unique second argument (e.g., 'CurlLayer1', 'CurlLayer2').","cause":"Two CurlLayer constructs with the same logical ID in the same stack.","error":"jsii.errors.JSIIError: There is already a construct with name 'CurlLayer' in Stack [...]"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}