Generate directly usable AWS CloudFormation template.
Project description
cdk-bootstrapless-synthesizer
A bootstrapless stack synthesizer that is designated to generate templates that can be directly used by AWS CloudFormation.
Usage
# Example automatically generated from non-compiling source. May contain errors.
from cdk_bootstrapless_synthesizer import BootstraplessStackSynthesizer
# Example automatically generated from non-compiling source. May contain errors.
from cdk_bootstrapless_synthesizer import BootstraplessStackSynthesizer
app = App()
MyStack(app, "my-stack-dev",
synthesizer=BootstraplessStackSynthesizer(
template_bucket_name="cfn-template-bucket",
file_asset_bucket_name="file-asset-bucket-${AWS::Region}",
file_asset_region_set=["us-west-1", "us-west-2"],
file_asset_prefix="file-asset-prefix/latest/",
image_asset_repository_name="your-ecr-repo-name",
image_asset_account_id="1234567890",
image_asset_tag_prefix="latest-",
image_asset_region_set=["us-west-1", "us-west-2"]
)
)
# Or by environment variables
# export BSS_TEMPLATE_BUCKET_NAME="cfn-template-bucket"
# export BSS_FILE_ASSET_BUCKET_NAME="file-asset-bucket-\${AWS::Region}"
# export BSS_FILE_ASSET_REGION_SET="us-west-1',us-west-2"
# export BSS_FILE_ASSET_PREFIX="file-asset-prefix/latest/"
# export BSS_IMAGE_ASSET_REPOSITORY_NAME="your-ecr-repo-name"
# export BSS_IMAGE_ASSET_ACCOUNT_ID="1234567890"
# export BSS_IMAGE_ASSET_TAG_PREFIX="latest-"
# export BSS_IMAGE_ASSET_REGION="us-west-1',us-west-2"
MyStack(app, "my-stack-dev2",
synthesizer=BootstraplessStackSynthesizer()
)
Synth AWS CloudFormation templates, assets and upload them
$ cdk synth
$ npx cdk-assets publish -p cdk.out/my-stack-dev.assets.json -v
Sample Project
See Sample Project
API Reference
See API Reference for API details.
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
Built Distribution
Close
Hashes for cdk-bootstrapless-synthesizer-0.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a636b3a2b070ea60647c3d73eefe6155f8bb01338f99f549201c35c1aa950068 |
|
MD5 | eb06e2f2989bb248c684adbd77013891 |
|
BLAKE2b-256 | 386b1d9e58f8620ead63b2108b5c2aaf54bbacf6d88d6acd7733d5d2c48e84dd |
Close
Hashes for cdk_bootstrapless_synthesizer-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de162c2445796948fbbb634cdce40f45c440619c45244c47e42f5dc1a848a27b |
|
MD5 | a55bc58b096bbf8d60d4886dfeabd797 |
|
BLAKE2b-256 | ca182616964f01df85eba28216fd3d80ea0d30b833167d567822dbc547c1d42a |