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.55.tar.gz (24.0 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.55-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aws_cdk_common-0.1.55.tar.gz
Algorithm Hash digest
SHA256 eada14c6a3084f20fd620064bce34d7abbf1ef7bb923b0f4607026382cb0c073
MD5 b0da9427ccb1747a440d3cd627499a73
BLAKE2b-256 003797a1966429036fd8dc638005fc18c3427a378086137bf0e9dcbf1a2ba557

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aws_cdk_common-0.1.55-py3-none-any.whl
Algorithm Hash digest
SHA256 27324873df0f34c31bc4e1e3c24c0d3406fbf43f3458712dfe8d5378e00d29cf
MD5 7cc9cb8e135d01315ce6f618a368152c
BLAKE2b-256 6dc5c2402f10922569cc28907360eac80c52408a9facf308842809d63513ed71

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