0.1.3 • Published 4 years ago

cdk-cicd v0.1.3

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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.

Usage

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

Properties lib/cdk-cicd.ts

propdescriptionusage
stackNameThe CloudFormation Stack to create/updatemust be a valid CFN stack name (e.g. some-stack-name)
sourceActionThe Source IAction for CodePipelineRather 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.
createBuildSpecA Factory that returns a BuildSpec object to useRefer to the lib/buildspec-factory.ts for creating these. You can create your own buildspec if you'd like but there are certain requirements; you have to have artifacts setup properly.
additionalPolicyStatementsAny additional PolicyStatements you'd like to add to the CodeBuild project RoleUseful if you're going to be making AWS API calls from within your CDK 'synth' process during the build.

Contribute

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

License

MIT