Skip to content

hitty5/cdk-pipeline-sample

Repository files navigation

CDK Pipelines Sample

Contains sample pipeline to demonstrate the usage of CDK pipelines. The sample pipeline requires one account as the deployment account hosting the CDK pipeline and one account has the target account where the stack resources get deployed to.

Bootstrap

First you need to boostrap your accounts.

For the deployment account

npx cdk bootstrap aws://$DEPLOY_ACC/$REGION  \
    --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess

For the target account

npx cdk bootstrap aws://$TARGET_ACC/$REGION \
    --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess \
    --trust $DEPLOY_ACC

Deploy CDK pipeline

Assume role of deployment account first.

cdk deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published