Cdk deploy in pipeline example?

1

I’m looking for examples on how to deploy a CDK stack in a CI/CD pipeline.

The pipeline (running in bitbucket) assumes a role via OIDC - and I’m having trouble getting this web-identity role to assume the CDK roles.

Any examples you could share would be highly appreciated!

  • Hi Georg, could you include more information about the errors you're encountering assuming your IAM roles from your Bitbucket pipeline? Errors or Console output?

Georg
asked 2 years ago1010 views
1 Answer
1

If you want to deploy CDK stacks to the other account using assume-role, please refer to my repository - https://github.com/aws-samples/aws-cdk-deploy-pipeline-using-aws-codepipeline.

Particularly, "createInstallCommands()" method in https://github.com/aws-samples/aws-cdk-project-template-for-devops/blob/main/lib/template/construct/pattern/pipeline-simple-pattern.ts will be useful to you.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions