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.58.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.58-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aws_cdk_common-0.1.58.tar.gz
Algorithm Hash digest
SHA256 211eec6592c5d66c278d50712cf417b486625186fb4395c245580fe80b3d7d79
MD5 3d6b52a6cb9e37ca0b8e5ddc2c79f2ec
BLAKE2b-256 c9cade3a4df50752561c7f263ba33564dac5c15da98648e081500547e4f9216b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aws_cdk_common-0.1.58-py3-none-any.whl
Algorithm Hash digest
SHA256 5d78043c9439caafc4c97a6c5381ceb2626ef0c0ab53990a8f7d94d78b6ed719
MD5 fe799a3f3ae89c37ee0ea7baa26f8228
BLAKE2b-256 6bc113fee8cc3b56ddbfaf5a31da6291d6db17887daa2b50cfb169a98ede9c80

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