-
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
aws-cdk-lib/core: RangeError: Map maximum size exceeded #29785
Comments
Hi Khushail the stack trace indicates the source of the issue is in the function |
Hey @gockle, looking at the comments on the bug you linked, it appears the underlying problem was with the |
Hi @scanlonp aws-solutions-construct uses the node-module deep-diff here to provide override information, the issue is when the module deep-diff is calling to string on iam policy resource. The exact function call from deep-diff is here. When deep-diff calls toString, the aws-cdk code fails in token-maps.ts, I am not sure why the bug #21062 stopped and assumed its an issue with the aws-solutions-construct. on first review the comment below, is same as what we are facing.
|
The token-map documentation clearly states that TokenStringMap storage is shared so this doesn't look like a cdk issue.
Closing this issue. |
|
@gockle, got it, thank you! If you do find what is causing this, feel free commenting here (even through the visibility warning); I would be interested in case we see this in the future! |
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
When I am trying to do
npx cdk synth
in the project Serverless-Image-Handler, I am getting an error.Expected Behavior
The command npx cdk synth should output a CloudFormation Template.
Current Behavior
Getting an error
Reproduction Steps
Possible Solution
The issue does not show up if the environment variable overrideWarningsEnabled is set to false
Command:
overrideWarningsEnabled=false npx cdk synth
Additional Information/Context
No response
CDK CLI Version
2.102.0
Framework Version
No response
Node.js Version
v18.18.1
OS
MacOS 14.4.1 (23E224)
Language
TypeScript
Language Version
5.2.2
Other information
Similar bug here #21062
The text was updated successfully, but these errors were encountered: