Skip to main content

Provides common functionality for Custom resources in CloudFormation.

Project description

Summary

  • Helper to enable all types of resource types for create/update/read/list operations
  • Heavily inspired to use dynamodb for resource management. Supports all native create/read/update/list/delete operations for any resource.
  • Dynamic identifier generation to support any resource identifier use case. Read Only resources or real resource creation.

Required extra permissions in each handlers permissions:

  • Due to us using dynamodb as a backend, we need extra permissions to store/retrieve state information from dynamo. These permissions should be added in addition to any other required permissions by each handler.

    • dynamodb:CreateTable
    • dynamodb:PutItem
    • dynamodb:DeleteItem
    • dynamodb:GetItem
    • dynamodb:UpdateItem
    • dynamodb:UpdateTable
    • dynamodb:DescribeTable
    • dynamodb:Scan

Development

  • High level commands
     curl -sSL https://install.python-poetry.org | python3 -
     export PATH="~/.local/bin:$PATH"
     poetry --version
     poetry add boto3
    
     poetry add --group dev  pytest
    
     poetry install --no-root
     poetry build
     poetry config pypi-token.pypi ""
     poetry publish
    
  • Generating Stubs after all 3rd party stubs are installed
    find src/ -type f -name '*.pyi' -exec rm {} +
    stubgen src/ -o src/  --include-private 
    
    • Do not run again after manually changed.
    • Build system updated to validate stubs via stubtest

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cf_extension_core-0.2.7.tar.gz (17.7 kB view hashes)

Uploaded Source

Built Distribution

cf_extension_core-0.2.7-py3-none-any.whl (30.9 kB view hashes)

Uploaded Python 3

Supported by

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