-
Notifications
You must be signed in to change notification settings - Fork 81
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
TypeError: data.join is not a function #16
Comments
Thanks for reporting. This error originates from the yaml-cfn parser. You can only reference the atttribute using dot-notation when using the !GetAtt shorthand syntax. Changing this to Please refer to the docs for Fn::GetAtt I see you're using connections to visualise |
I'll close this. Please reopen if you disagree :-) |
This template successfully deploys, but maybe better filed downstream: https://github.com/gristlabs/yaml-cfn/issues Resources:
Resource:
Type: AWS::SNS::Topic
Properties:
DisplayName:
!Sub ${Resource2}
Resource2:
Type: AWS::SNS::Topic
Properties:
DisplayName:
!GetAtt Resource3.TopicName
Resource3:
Type: AWS::SNS::Topic
Properties:
DisplayName:
!Ref Resource4
Resource4:
Type: AWS::SNS::Topic
Properties:
DisplayName:
Fn::Sub: ${Resource5}
Resource5:
Type: AWS::SNS::Topic
Properties:
DisplayName:
Fn::GetAtt: Resource6.TopicName
Resource6:
Type: AWS::SNS::Topic
Properties:
DisplayName:
Ref: Resource7
Resource7:
Type: AWS::SNS::Topic
Properties:
DisplayName:
!Sub ${Resource8.TopicName}
Resource8:
Type: AWS::SNS::Topic
Properties:
DisplayName:
Fn::Sub: ${Resource9.TopicName}
Resource9:
# DependsOn: Resource
Type: AWS::SNS::Topic |
@PatMyron I ran into a similar issue and ended up needing to convert from the shorthand notation Our template has also deployed successfully. I believe this issue is the result of a bug in the |
cfn-dia html -t ~/Documents/GitHub/cfn-python-lint/test/fixtures/templates/bad/resources_circular_dependency_2.yaml TypeError: data.join is not a function at Object.dump (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/yaml-cfn/index.js:39:24) at applyOverrides (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/yaml-cfn/index.js:44:49) at Type.represent (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/yaml-cfn/index.js:61:23) at detectType (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/js-yaml/lib/js-yaml/dumper.js:695:26) at writeNode (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/js-yaml/lib/js-yaml/dumper.js:720:5) at writeBlockMapping (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/js-yaml/lib/js-yaml/dumper.js:657:10) at writeNode (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/js-yaml/lib/js-yaml/dumper.js:750:9) at writeBlockMapping (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/js-yaml/lib/js-yaml/dumper.js:657:10) at writeNode (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/js-yaml/lib/js-yaml/dumper.js:750:9) at dump (/usr/local/lib/node_modules/@mhlabs/cfn-diagram/node_modules/js-yaml/lib/js-yaml/dumper.js:840:7)
(template from aws-cloudformation/cfn-lint#1391, aws-cloudformation/cfn-lint#1411)
The text was updated successfully, but these errors were encountered: