(@aws-cdk/pipelines): allow multiple source actions #14490
Labels
@aws-cdk/pipelines
CDK Pipelines library
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Typically, we set up a
CdkPipeline
aswhere there is a single
sourceAction
pulling the (aws-cdk) source code.The blog article CDK Pipelines: Continuous delivery for AWS CDK applications as well as aws-cdk-rfc 0049 suggest that the application modules should be built inside the
CdkPipeline
and published as assets which in turn are referenced in the (cross-account) stack deployments.Use Case
Having a multi-repo setup, for instance,
foobar/cdk
for the cdk code andfoobar/lambda
orfoobar/web
for a Lambda and web frontend is not possible with a singlesourceAction
.If one uses
go
for the Lambda one requires a customPipeline
, same is true for recent web apps.Proposed Solution
Changing
sourceAction
tosourceActions
allowing an array ofsourceAction
, e.g.,we could then use
I am not sure how to reference the build results inside
cloudAssemblyArtifact
usingAsset.from(..)
or the like, for example, when defining the lambdaFunction
in the cdk code but I guess this is already somewhat inside the cdkassets.json
.Alternatively, one could define a
CodePipelineStack
which is deployed with eachApplicationStage
. However, this would contradict the idea of building all assets in a central pipeline.This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: