Please Note: This is a personal project, created as part of my study of the AWS CDK). This project should not to be considered an official AWS quickstart.
Source Quickstart: https://aws.amazon.com/quickstart/architecture/cicd-taskcat/
The CI/CD environment created by this script includes AWS TaskCat for testing, AWS CodePipeline for continuous integration, and AWS CodeBuild as your build service.
TaskCat is an open-source tool that tests AWS CloudFormation templates. It creates stacks in multiple AWS Regions simultaneously and generates a report with a pass/fail grade for each region. You can specify the regions, indicate the number of Availability Zones you want to include in the test, and pass in the AWS CloudFormation parameter values you want to test. You can use the CI/CD pipeline to test any AWS CloudFormation templates, including nested templates, from a GitHub repository.
- Configure your AWS CLI and CDK environment as per instructions (AWS CLI - Installation | AWS CDK - Getting Started)
- Obtain a GitHub OAuth 2 token from your GitHub account with the scopes admin:repo_hook and repo.
- Run
npm run build
to compile the scripts - Run
cdk deploy -c githubuser=<github user name> -c authtoken=<github oauth token> -c githubreponame=<name of github repo to monitor>
to deploy the stack
npm run build
compile typescript to jsnpm run watch
watch for changes and compilecdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation templatecdk deploy -c githubuser=<github user name> -c authtoken=<github oauth token> -c githubreponame=<name of github repo to monitor>
Deploys the template