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.54.tar.gz (23.7 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.54-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws_cdk_common-0.1.54.tar.gz
  • Upload date:
  • Size: 23.7 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.54.tar.gz
Algorithm Hash digest
SHA256 35dfe4ef07b0159f70837844b0592440a8634244967811e6e2415b69042bf92f
MD5 8e29e56be6bd503ba39e8043adf9dff8
BLAKE2b-256 8b0054433be09e6d94a6a3f40370d603abc37f0a6fcfc69b878c1838d2835eec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_cdk_common-0.1.54-py3-none-any.whl
  • Upload date:
  • Size: 28.6 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.54-py3-none-any.whl
Algorithm Hash digest
SHA256 bc5914028b494942bdc344f677eaf7f8e75a726a94e29ea632ffe5fcaeffb49d
MD5 f929849a43cea073a0779fd13ac4572e
BLAKE2b-256 7feccde156982435de8db8c4e57147594f3ddd22a534154c42bdf25b3fdcf37b

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