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
已提问 2 年前989 查看次数
1 回答
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.

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则