Skip to main content

A CDK Construct that creates a CodePipeline that will build and deploy a CDK Stack

Project description

CDK CodePipeline Stack (pre-release)

The purpose of this Construct is to build a CodePipeline stack that builds and deploys a CDK Stack.

This construct is still in development and as such you should use with caution.

What it creates

This will create a CodePipeline pipeline that builds a CDK module and then deploys it to CloudFormation as a Stack.


Refer to the bin/automation.ts for an example.

Properties lib/cdk-cicd-props.ts

prop description usage
stackName The CloudFormation Stack to create/update must be a valid CFN stack name (e.g. some-stack-name)
sourceAction The Source IAction for CodePipeline Rather than try to account for all source situations, you just provide your own. The factory function is given the Artifact to use as the output target in your Action. If you don't use this artifact, the construct will fail construction.
createBuildSpec A Factory that returns a BuildSpec object to use Refer to the [lib/buildspec-factory.ts] for creating these. You can create your own buildspec if you'd like but there are certain requirements.
additionalPolicyStatements Any additional PolicyStatements you'd like to add to the CodeBuild project Role Useful if you're going to be making AWS API calls from within your CDK 'synth' process during the build.


Always open to any suggestions or help in making this better. Open an Issue.



Project details

Download files

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

Files for mbonig.cdk-cicd, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size mbonig.cdk_cicd-0.1.2-py3-none-any.whl (29.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page