Reputation: 79
I use trunk-based development to provision aws resources to different environments according to the branches(develop-> dev, release-> prod). Also, I have separated my application code in three different repositories(infra, backend, UI). So I would need multiple pipelines for these deployments to multiple accounts. I am using a cdk-pipeline repository to create these multiple pipelines but having a problem in instantiating these pipelines with empty stacks. A cdk pipeline expects a stage with stacks while calling pipeline.addStage()
. How do I include the infra code inside this stage when it exists in a different repository?
Upvotes: 0
Views: 859
Reputation: 89
When using cdk codepipeline you can reference a GitHub repository as the source, an example can be found here: aws_codepipeline_actions
Upvotes: 0