Built with the Starter kit for CDK pipelines for a single account CDK pipeline project. For details how to extend it to multi-account setups, please take a look at the resources.
To have AWS CodePipeline read from this GitHub repo, you also need to have a GitHub personal access token stored as a plaintext secret (not a JSON secret) in AWS Secrets Manager under the name github-token. For instructions, see Tutorial: Creating and Retrieving a Secret. The token should have the scopes repo
and admin:repo_hook
.
infrastructure/ -- Contains all the infrastructure settings
├── index.ts -- Base setup for the underlying stack
├── config.ts -- Configurations
└── pipeline/
├── pipeline-stack.ts -- Setup the CDK pipeline
├── development-stage.ts -- Development stage, this become part of the pipeline. Could be used for testing, production, ... stages
└── application-stack.ts -- The application stack
npm install
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/moralesl/pipeline-demo.git
git branch -M main
git push -u origin main
cdk bootstrap
cdk deploy