You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cdk-lambda-extensions

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-lambda-extensions

AWS CDK construct library that allows you to add any AWS Lambda extensions to the Lambda functions

0.1.279
Source
PyPI
Maintainers
1

NPM version PyPI version Release

cdk-lambda-extensions

AWS CDK construct library that allows you to add any AWS Lambda Extensions to the Lambda functions.

Sample

To add s3-logs-extension-demo extension from the aws-lambda-extensions github repository:

# Example automatically generated from non-compiling source. May contain errors.
# prepare the s3 bucket for the lambda logs
bucket = s3.Bucket(self, "DemoBucket")

# prepare the Function
fn = Function(self, "Handler", {
    "code": lambda_.Code.from_asset(path.join(__dirname, "../aws-lambda-extensions/s3-logs-extension-demo/functionsrc")),
    "runtime": lambda_.Runtime.PYTHON_3_8,
    "handler": "lambda_function.lambda_handler",
    "memory_size": 128,
    "environment": {
        "S3_BUCKET_NAME": bucket.bucket_name
    }
})
bucket.grant_write(fn)

# plug the `s3-logs-extension` in the lambda function
fn.add_extension(S3LogsExtension(self, "S3BucketExtention").extension)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts