cdk-lambda-extensions


Namecdk-lambda-extensions JSON
Version 0.1.22 PyPI version JSON
download
home_pagehttps://github.com/pahud/cdk-lambda-extensions.git
SummaryAWS CDK construct library that allows you to add any AWS Lambda extensions to the Lambda functions
upload_time2021-01-16 02:06:44
maintainer
docs_urlNone
authorPahud<pahudnet@gmail.com>
requires_python>=3.6
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![NPM version](https://badge.fury.io/js/cdk-lambda-extensions.svg)](https://badge.fury.io/js/cdk-lambda-extensions)
[![PyPI version](https://badge.fury.io/py/cdk-lambda-extensions.svg)](https://badge.fury.io/py/cdk-lambda-extensions)
![Release](https://github.com/pahud/cdk-lambda-extensions/workflows/Release/badge.svg)

# cdk-lambda-extensions

AWS CDK construct library that allows you to add any [AWS Lambda Extensions](https://docs.aws.amazon.com/lambda/latest/dg/using-extensions.html) to the Lambda functions.

# Sample

To add `s3-logs-extension-demo` extension from the [aws-lambda-extensions](https://github.com/aws-samples/aws-lambda-extensions) github repository:

```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
# 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)
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pahud/cdk-lambda-extensions.git",
    "name": "cdk-lambda-extensions",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Pahud<pahudnet@gmail.com>",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/61/9f/8910a43b848dc29e174024eb7c0506845456fb1cc72b00e6af8386a75a51/cdk-lambda-extensions-0.1.22.tar.gz",
    "platform": "",
    "description": "[![NPM version](https://badge.fury.io/js/cdk-lambda-extensions.svg)](https://badge.fury.io/js/cdk-lambda-extensions)\n[![PyPI version](https://badge.fury.io/py/cdk-lambda-extensions.svg)](https://badge.fury.io/py/cdk-lambda-extensions)\n![Release](https://github.com/pahud/cdk-lambda-extensions/workflows/Release/badge.svg)\n\n# cdk-lambda-extensions\n\nAWS CDK construct library that allows you to add any [AWS Lambda Extensions](https://docs.aws.amazon.com/lambda/latest/dg/using-extensions.html) to the Lambda functions.\n\n# Sample\n\nTo add `s3-logs-extension-demo` extension from the [aws-lambda-extensions](https://github.com/aws-samples/aws-lambda-extensions) github repository:\n\n```python\n# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826\n# prepare the s3 bucket for the lambda logs\nbucket = s3.Bucket(self, \"DemoBucket\")\n\n# prepare the Function\nfn = Function(self, \"Handler\",\n    code=lambda_.Code.from_asset(path.join(__dirname, \"../aws-lambda-extensions/s3-logs-extension-demo/functionsrc\")),\n    runtime=lambda_.Runtime.PYTHON_3_8,\n    handler=\"lambda_function.lambda_handler\",\n    memory_size=128,\n    environment={\n        \"S3_BUCKET_NAME\": bucket.bucket_name\n    }\n)\nbucket.grant_write(fn)\n\n# plug the `s3-logs-extension` in the lambda function\nfn.add_extension(S3LogsExtension(self, \"S3BucketExtention\").extension)\n```\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "AWS CDK construct library that allows you to add any AWS Lambda extensions to the Lambda functions",
    "version": "0.1.22",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "2452069e6560f84fec18a3af2a54bef6",
                "sha256": "d939e99274f443d689869d18b98acbce28edc469fc5313a748e478d7c3368b5b"
            },
            "downloads": -1,
            "filename": "cdk_lambda_extensions-0.1.22-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2452069e6560f84fec18a3af2a54bef6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 22168,
            "upload_time": "2021-01-16T02:06:43",
            "upload_time_iso_8601": "2021-01-16T02:06:43.330586Z",
            "url": "https://files.pythonhosted.org/packages/18/ba/f1a429a25beeb3c3c4efce2084218062ecdbfe6addc7696c1677c29a798e/cdk_lambda_extensions-0.1.22-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "a96052ae78719d2f7b8b94172375fdec",
                "sha256": "0b3072f15fa23e34b7bddb8b85ee3d000883f520769a0d93d229a290a4807fac"
            },
            "downloads": -1,
            "filename": "cdk-lambda-extensions-0.1.22.tar.gz",
            "has_sig": false,
            "md5_digest": "a96052ae78719d2f7b8b94172375fdec",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 23049,
            "upload_time": "2021-01-16T02:06:44",
            "upload_time_iso_8601": "2021-01-16T02:06:44.315997Z",
            "url": "https://files.pythonhosted.org/packages/61/9f/8910a43b848dc29e174024eb7c0506845456fb1cc72b00e6af8386a75a51/cdk-lambda-extensions-0.1.22.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-01-16 02:06:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "pahud",
    "error": "Could not fetch GitHub repository",
    "lcname": "cdk-lambda-extensions"
}
        
Elapsed time: 0.20868s