Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 777 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 777 Bytes

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