Skip to main content

AWS CDK based lambda layer including Twilio SDK.

Project description

B.TwilioSdkLayer

An AWS CDK based lambda layer containing Twilio SDK for python.

Description

This library is intended to simplify Twilio SDK dependency management in AWS architectures where Twilio logic is being handled with lambda functions. Simply include this layer when creating a lambda function to enable Twilio functionality.

NOTE! In order to use this layer, a docker command must be available on your machine. It is because the CDK runs a bundling command on a docker container to create the Twilio dependency.

Remarks

Biomapas aims to modernise life-science industry by sharing its IT knowledge with other companies and the community. This is an open source library intended to be used by anyone. Improvements and pull requests are welcome.

Related technology

  • Python 3
  • AWS CDK
  • Twilio

Assumptions

The project assumes the following:

  • You have basic-good knowledge in python programming.
  • You have basic-good knowledge in AWS and AWS CDK.
  • You have basic knowledge in Twilio.

Useful sources

Install

The project is built and uploaded to PyPi. Install it by using pip.

pip install b_twilio_sdk_layer

Or directly install it through source.

pip install .

Usage & Examples

Create a lambda function with this layer:

from aws_cdk.aws_lambda import Function, Code, Runtime
from b_twilio_sdk_layer.layer import Layer as TwilioLayer

Function(
    scope=stack,
    id='MyCoolFunction',
    function_name='MyCoolFunction',
    code=Code.from_asset('/path/to/your/code'),
    handler='index.handler',
    runtime=Runtime.PYTHON_3_8,
    layers=[TwilioLayer(stack, 'MyCoolTwilioLayer')],
)

Testing

The project currently has no tests.

Contribution

Found a bug? Want to add or suggest a new feature?
Contributions of any kind are gladly welcome. You may contact us directly, create a pull-request or an issue in github platform. Lets modernize the world together.

Release history

0.0.7

  • Add -R option for better debugging.

0.0.6

  • Add latest boto version to tests.

0.0.5

  • Add ability to bundle boto3 library. Simply specify version in the constructor.

0.0.4

0.0.3

  • Add disclaimer that docker is required.

0.0.2

  • Ensure that cdk application works by running cdk synth command.

0.0.1

  • Initial build.
  • Twilio SDK 6.46.0.
  • Docker image for asset building: python:3.9.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

b_twilio_sdk_layer-0.0.7.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

b_twilio_sdk_layer-0.0.7-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file b_twilio_sdk_layer-0.0.7.tar.gz.

File metadata

  • Download URL: b_twilio_sdk_layer-0.0.7.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for b_twilio_sdk_layer-0.0.7.tar.gz
Algorithm Hash digest
SHA256 0d1f96c27ee1d6a4c4127cb5c6bf15a4a4a8be4b43ec501e27c9546353fa1937
MD5 4ac8d11253e876f7fa31a16e80823adb
BLAKE2b-256 b733b9d56be45b5024a69df564de2288b5835b4843ddb0eca52ee3ae58ccb066

See more details on using hashes here.

File details

Details for the file b_twilio_sdk_layer-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: b_twilio_sdk_layer-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for b_twilio_sdk_layer-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c5d48a570a90c27255b20c001af07797d438a1f56d9c5b6aabc9d56081053c56
MD5 3ca6b8c361c8f1aaf8c310308576ca45
BLAKE2b-256 375c27434a2b5252da6cd3579d1754791433811444e4211e2cfd8c5be6864f18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page