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.57.tar.gz (24.2 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.57-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws_cdk_common-0.1.57.tar.gz
  • Upload date:
  • Size: 24.2 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.57.tar.gz
Algorithm Hash digest
SHA256 462fa343dc0d04407078ee026640b97fee6bc7decbc26c28049135923399ae2f
MD5 6579ed56d62ae7ba382b5782f600346a
BLAKE2b-256 98ce4ea849bb377eef4eab343e3dae88c39aca0de49d62244998ee2e0023d321

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_cdk_common-0.1.57-py3-none-any.whl
  • Upload date:
  • Size: 29.1 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.57-py3-none-any.whl
Algorithm Hash digest
SHA256 7fe778a70147937e6a4e16fd1cf10345d35c74401dcecac3e81569de534dbc18
MD5 986f669753652d38997e6efccaf2594f
BLAKE2b-256 9bba19b31a134bd8796d367d318449c5d89c33ff7cec72f8c07acfe3998621cb

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