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
demandé il y a 2 ans1013 vues
1 réponse
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.

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions