-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pipelines: Missing props unused check for CodePipeline #20334
Comments
Hey @simonkarman, Thank you for reporting this! This seems like a simple fix, but it wont be high on the priority list (since even small fixes would require testing). Since you already have a good grasp on the solution, feel free to create a PR to resolve this following the Contribution guidelines and send it my way for review. |
… existing pipeline is used (#20423) ---- Added prop check for reuseCrossRegionSupportStacks in CodePipeline which fixes #20334 Added unit tests for all three prop checks. ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the bug
In the constructor of pipelines.CodePipeline checks are done to verify that
pipelineName
andcrossAccountKeys
are not set if a pipeline is already provided through the props. However this check is missing for thereuseCrossRegionSupportStacks
property.Expected Behavior
Providing both the
reuseCrossRegionSupportStacks
parameter and thecodePipeline
parameter to a pipelines.CodePipeline should fail.Current Behavior
However, right now: Providing both the
reuseCrossRegionSupportStacks
parameter and thecodePipeline
parameter to a pipelines.CodePipeline does not fail, although it should.Reproduction Steps
The following should fail.
Possible Solution
Add the following piece of code to line 357 of the CodePipeline.
Additional Information/Context
No response
CDK CLI Version
2.16.0 (build 4c77925)
Framework Version
No response
Node.js Version
v14.18.0
OS
MacOS
Language
Typescript
Language Version
3.9.7
Other information
No response
The text was updated successfully, but these errors were encountered: