Skip to main content

A shared package for common modules and constants for AWS Lambda applications

Project description

AWS CDK Common

aws-cdk-common is a shared package for common modules and constants for AWS Lambda applications based on AWS CDK. It provides essential tools and configurations for managing AWS resources efficiently.

Python Environment

Installing Poetry

Poetry is a tool to manage Python projects in a deterministic way. Follow the instructions to set up your environment.

Installing Required Modules

To install required modules, run:

poetry install --no-root

Development Environment Setup

To install required modules for development, run:

poetry install --with dev --no-root

Activating the Virtual Environment

To activate the virtual environment:

  • Linux/macOS:
    source $(poetry env info --path)/bin/activate
    
  • Windows (PowerShell):
    . $(poetry env info --path)/Scripts/activate
    

Pre-commit Hooks

Install pre-commit hooks to ensure consistent code quality:

poetry run pre-commit install

Code Formatting and Quality Checks

  • Format code with Black:
    poetry run black .
    
  • Sort imports with isort:
    poetry run isort .
    
  • Check code quality with Flake8:
    poetry run flake8 .
    

Tests

Unit Tests

Run unit tests:

poetry run pytest tests/unit

Integration Tests

Run integration tests:

poetry run pytest tests/integration

All Tests

Run all tests:

poetry run pytest

Deployment

To deploy the application, use:

python app_setup.py deploy

For a faster deployment without installations or tests, use:

python app_setup.py fast_deploy

Setup

Ensure that the aws-common repository is cloned and updated as part of the setup process.

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

aws_cdk_common-0.1.56.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_cdk_common-0.1.56-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file aws_cdk_common-0.1.56.tar.gz.

File metadata

  • Download URL: aws_cdk_common-0.1.56.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for aws_cdk_common-0.1.56.tar.gz
Algorithm Hash digest
SHA256 ef9ba3d2e96833c2ea3c4503aced59932ad9ee7d9be000f4842dad01ce26b827
MD5 46eb787a8d452339898af5ae52685672
BLAKE2b-256 c63d77ddb8a37b0110a8ef71b6f080547791e03316b82e0688e382a80ed0f678

See more details on using hashes here.

File details

Details for the file aws_cdk_common-0.1.56-py3-none-any.whl.

File metadata

  • Download URL: aws_cdk_common-0.1.56-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for aws_cdk_common-0.1.56-py3-none-any.whl
Algorithm Hash digest
SHA256 0e29fdfb98275fa2da71c12c9692ce98b056a4403c5c3157c40e97c5db4012b9
MD5 9eb3d99b544cb6d0d394c3b8cf44c416
BLAKE2b-256 8204b848c22a35410a4338028b0f5a33a8331ac1b6a874601b3f80cc135ec657

See more details on using hashes here.

Supported by

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