Skip to main content

CDK Factory. A QuickStarter and best practices setup for CDK projects

Project description

cdk-factory

An AWS CDK wrapper for common deployments and best practices.

Contributing to the Code Base

If you are contributing to the code base

  1. Clone this repo
  2. Run the ./setup.sh shell script
  3. Start exploring

Understanding the flow

The core configuration for any of the CDK deployments are controlled in your config.json files. From a high-level we have the following key elements that control the actions within the framework. The details will follow.

key description
cdk Any cdk configs/parameters that you need to pass
workload General information about your workload
workload->stacks A CDK implementation of a CloudFormation Stack
workload->deployments Grouping of Stacks, which can be deployed via stack or pipeline mode
workload->pipelines An AWS Code Pipeline deployment

cdk

The cdk -> parameters defines the following

key description
placeholder A placeholder that will used to perform a fine/replace action in the config once it's processed
env_var_name | value An environment variable to load the value or a static value
cdk_parameter_name The CdkParameterName that will be passed in as custom argument to the synth command

Example

{ 
    "cdk": {
        "parameters": [
            {
                "placeholder": "{{WORKLOAD_NAME}}",
                "env_var_name": "CDK_WORKLOAD_NAME",
                "cdk_parameter_name": "WorkloadName"
            },
            {
                "placeholder": "{{CDK_SYNTH_COMMAND_FILE}}",
                "value": "../../samples/website/commands/cdk_synth.sh",
                "cdk_parameter_name": "CdkSynthCommandFile"
            },
        ]
    }
}

workload

TODO:

stacks

TODO:

deployments

TODO:

pipelines

TODO:

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

cdk_factory-1.2.0.tar.gz (520.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_factory-1.2.0-py3-none-any.whl (401.2 kB view details)

Uploaded Python 3

File details

Details for the file cdk_factory-1.2.0.tar.gz.

File metadata

  • Download URL: cdk_factory-1.2.0.tar.gz
  • Upload date:
  • Size: 520.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for cdk_factory-1.2.0.tar.gz
Algorithm Hash digest
SHA256 350197c2bd1728e353f1d4c198f00724e6f543362f9c2e78406e3a94ce1773c8
MD5 b8652096e910e740986603f85b714d13
BLAKE2b-256 f546b18c845c5c9024622430980f19b3982ddfa4c840d050bd0d1b3bb6ba8bf5

See more details on using hashes here.

File details

Details for the file cdk_factory-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: cdk_factory-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 401.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for cdk_factory-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8d2cbbb01e3042a64b78221338e6a706f236dd7fee9cd560cc77bc8537fc3cd
MD5 21da8614e77f2fd494eb56923eb56c3e
BLAKE2b-256 7d722f1accc04ee85f0e8426a1431353c4f7aee674e37cd99b72504cc895d798

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