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
(events): CDK tries to create event bus rules that already exist #12479
Comments
Hey @mazayan , thanks for opening the issue. You're right that this is probably an issue with multiple EventBus policies (I don't think #8010 is actually related to this one). Let me investigate. For now, note that you can use the
Thanks, |
Actually - I believe we already have a PR fixing this issue! #12538 |
Thanks @mazayan ! |
|
I have a cdk project that creates a codepipeline resource in account B but has a source action to reference CodeCommit in account A. I have been able to successfully deploy this pipeline. However, when I go to create a different CDK project with a different codepipeline resource in account B, referencing a different repository in account A, I receive an error with the EventBusPolicy. CDK is not recognizing that I already have an EventBusPolicy stack deployed in account B. I tried to just deploy my Code & Pipeline stack but it auto deploys the EventBusPolicy stack.
Account 1111111111 contains the code in CodeCommit (Account A)
Account 22222222 contains the CodePipeline resource (Account B)
Reproduction Steps
Stripped out some code to show only what is relevant
CodeStack:
PipelineStack:
What did you expect to happen?
I expected CDK to either recognize that an eventbuspolicy already existed between account A & B, or create a new one with a new ID.
What actually happened?
CDK failed to create the eventbusy policy stack (per error log above)
Environment
Other
I found this other issue that I think is related #8010. The statement ID was changed but it still is not unique enough to handle multiple deployments of a cross account source reference to the same account.
commit for reference: skinny85@4044dd4
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: