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
pipPyPI
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.