You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I ran this tool on a CloudFormation template generated by the AWS CDK. I managed to pinpoint the error to the below resource. More specifically, it's the Fn::Join within the ManagedPolicyArns that is causing the error:
I get the following error when generating a diagram for this template:
➜ cfn-dia draw.io -t cdk.out/CdkStack.template.json
(node:20057) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'split' of undefined
at createPseudoResources (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/resources/JsonUtil.js:10:37)
at createPseudoResources (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/resources/JsonUtil.js:5:7)
at createPseudoResources (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/resources/JsonUtil.js:5:7)
at createPseudoResources (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/resources/JsonUtil.js:5:7)
at createPseudoResources (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/resources/JsonUtil.js:5:7)
at createPseudoResources (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/resources/JsonUtil.js:5:7)
at createPseudoResources (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/resources/JsonUtil.js:5:7)
at Object.createPseudoResources (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/resources/JsonUtil.js:5:7)
at generate (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/index.js:89:12)
at Command.<anonymous> (/Users/sander/.nodenv/versions/12.4.0/lib/node_modules/@mhlabs/cfn-diagram/index.js:44:11)
(node:20057) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functionwithout a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:20057) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The text was updated successfully, but these errors were encountered:
Hello. I ran this tool on a CloudFormation template generated by the AWS CDK. I managed to pinpoint the error to the below resource. More specifically, it's the
Fn::Join
within theManagedPolicyArns
that is causing the error:I get the following error when generating a diagram for this template:
The text was updated successfully, but these errors were encountered: