-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(crossRegionReference): error logging for throwIfAnyInUse fails to log exports in use #29699
(crossRegionReference): error logging for throwIfAnyInUse fails to log exports in use #29699
Comments
PR at #29961 with fix. |
…29961) ### Issue #29699 Closes #29699 ### Reason for this change The logic was incorrectly using `Object.entries()` on a Map. ### Description of changes This is a straighforward change to properly handle the map, and an update to tests. ### Description of how you validated changes Updated test ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
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. |
Describe the bug
Discovered whilst debugging an issue with cross-stack exports, it looks like the error message logic that would identify which exports are in use by which stack is broken.
aws-cdk/packages/@aws-cdk/custom-resource-handlers/lib/core/cross-region-ssm-writer-handler/index.ts
Lines 104 to 109 in 36fd79d
In my case, there are
tagResults
but the results aren't mapped into the error message, so you just get a clear line in the error message.Expected Behavior
The error message to identify which exports are in use by which stacks.
For example:
Current Behavior
Error message doesn't include the content
Example
this appears to be the case in a number of issues:
#27251
#28200
#24464
#27902
Reproduction Steps
Create a cross region stack that uses an export, and then try to destroy the exporting stack first
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.118.0 (build a40f2ec)
Framework Version
No response
Node.js Version
v18.9.0
OS
arn:aws:lambda:us-east-1::runtime:464db84005d4f68e67934a6df703e04e6e8782a50ec2882673a8e1c996ab814a
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: