Pipeline Demo

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.

Architecture overview

CDK Pipeline architecture overview

Prerequisites

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.

Project structure

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

Usage

Install dependencies

npm install

Initialize your local repository

git init
git add .
git commit -m "Initial commit"

Push to Github

git remote add origin https://github.com/moralesl/pipeline-demo.git
git branch -M main
git push -u origin main

Bootstrap your environment

cdk bootstrap

Initial deployment

cdk deploy

Resources