(pipelines): Support for Code Pipeline V2
Describe the feature
I would like to ask if code pipeline type V2 can be supported inside the pipelines module, similar to how it is supported within the aws-codepipeline module
Use Case
Our team would like to upgrade to Code Pipeline V2, however we are using the existing pipelines module and would like a way to use v2 with it to be able to use all of the code pipeline v2 features
Proposed Solution
Similar to how it is implemented here in the aws-codepipeline module: https://github.com/aws/aws-cdk/blob/be383a948e659b4fdd34599c39fdc284c42f9b5d/packages/aws-cdk-lib/aws-codepipeline/lib/pipeline.ts#L341 where it uses PipelineType.V2, it would be nice if we could have a similar option to pass in the pipelines modules: https://github.com/aws/aws-cdk/blob/be383a948e659b4fdd34599c39fdc284c42f9b5d/packages/aws-cdk-lib/pipelines/lib/codepipeline/codepipeline.ts#L470
I assume the change would start with something like this:
this._pipeline = new cp.Pipeline(this, 'Pipeline', {
pipelineName: this.props.pipelineName,
pipelineType: this.props.pipelineType ?? cp.PipelineType.V1, // --> this line would update
crossAccountKeys: this.props.crossAccountKeys ?? false,
crossRegionReplicationBuckets: this.props.crossRegionReplicationBuckets,
... etc
However I am not sure the implications and what other logic would need to be updated as part of this change.
Other Information
I have tried the workaround provided in the cdk community slack channel here, which has worked fine for some, but I our team has been running into issues with the workaround. We are wondering if it's possible to update the existing pipelines module to support this, so that no workaround is required. Thank you in advance
Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
CDK version used
2.186.0
Environment details (OS name and version, etc.)
macOS Sequoia 15.3.2
Have discussed with @andreamac003 off line. A team member will help the PR review to move this forward.
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.