Skip to main content

AWS CDK Code Builder GitHub tag (latest SemVer) Python_Version GitHub PyPI - Downloads PyPI - Downloads

This library work very similarly to how AWS sam build works. It will find the requirements.txt file and install all libraries and package them together with your code to then ship to a lambda function.

📝 CONTRIBUTIONS

Before doing any contribution read CONTRIBUTING.

📧 CONTACT

Email: amng835@gmail.com

General Discord: https://discord.gg/dFD5HHa

Developer Discord: https://discord.gg/rxNNHYN9EQ

📥 INSTALLING

Latest PyPI stable release

pip install aws-cdk-code-builder

⚙ HOW TO USE

Folder tree (Simplified)

cdk_project
     | -- lambda_function
     |          | -- main.py
     | -- cdk_project
     |         | -- __init__.py
     |         | -- cdk_project_stack.py
     | -- app.py
     | -- ...

File: cdk_project_stack.py

import os
import aws_cdk
from aws_cdk import aws_lambda as lambda_
from aws_cdk_code_builder import Build

CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
PARENT_PATH = os.path.dirname(CURRENT_DIR)
LAMBDA_CODE = os.path.join(PARENT_PATH, 'lambda_function')


class CdkProjectStack(aws_cdk.Stack):
    def __init__(self, scope: aws_cdk.Construct, construct_id: str, **kwargs) -> None:
        super().__init__(scope, construct_id, **kwargs)
        
        # This is a simplified representation of Function, more params are needed for it to compile
        lambda_.Function(
            code=Build(
                project_path=LAMBDA_CODE,
                work_dir=PARENT_PATH
            ).build(),
        )

🤝 PARAMETERS

  • project_path : str, required
    • Path to the lambda function code
  • work_dir : str, required
    • Path to the working directory.
    • Note: Build folder will be created in this path (build/)

Metadata

Release files for aws-cdk-code-builder 1.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-cdk-code-builder 1.2.4
File Size Uploaded Provenance Actions
aws-cdk-code-builder-1.2.4.tar.gz 8.3 kB Without provenance Details for aws-cdk-code-builder-1.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws-cdk-code-builder 1.2.4
File Interpreter ABI Platform Actions
aws_cdk_code_builder-1.2.4-py3-none-any.whl Python 3 none any Details for aws_cdk_code_builder-1.2.4-py3-none-any.whl

Total release size: 18.0 kB

Release files / aws-cdk-code-builder-1.2.4.tar.gz

Download URL aws-cdk-code-builder-1.2.4.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
52648aa831bae84b59d39fb4cf7983df1136be312b1c9f908ea199c3bcafbc92
BLAKE2b-256 checksum
How to use checksums
c427fc757c55a327e71ec94dea9551f596959b92bfe7c2596d2faae6e1dff2a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / aws_cdk_code_builder-1.2.4-py3-none-any.whl

Download URL aws_cdk_code_builder-1.2.4-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a04df7341b8b6d171363b601909fbafce354fa6bbc8f23dd30fce34f8e3d1ed
BLAKE2b-256 checksum
How to use checksums
b2fe5b6a928f9b5cc187bc917ed6199f51c0343fc0f45bff2acab38f253edfda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for aws-cdk-code-builder 1.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page