YAML is not recognized when using !Sub
See original GitHub issueWhen trying to use sam-local with the project https://github.com/taimos/serverless-todo-demo it fails with the following error:
ERROR: did not find expected alphabetic or numeric character (line: 34; col: 0)
Line 34 uses the string substitution for the IAM permission to DynamoDB:
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${TodoTable}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:6 (4 by maintainers)
Top Results From Across the Web
YAML is not recognized when using !Sub · Issue #30 - GitHub
I tried with the project I mentioned above and ran sam local start-api or sam validate and both failed with the given error....
Read more >include: some .yaml files not recognized - Configuration
Hi everybody,. I just stumbled upon this when I had issues with the neato integration: sometimes¹, some .yaml files in my packages folder ......
Read more >How to Fix Errors in YAML (.YML) Config Files - Knowledgebase
Open a YAML parser such as: http://yaml-online-parser.appspot.com/ · Paste your . · If the output (on the right side) is red, read through...
Read more >Perl YAML module does not recognize types of scalars
I wrote that branch and a sub for dealing with hex values for YAML 0.900.0. ... use YAML qw(LoadFile Dump); use Data::Dumper; my...
Read more >10 YAML tips for people who hate YAML | Enable Sysadmin
Run the file with Python to produce a file called output. yaml file. This output is perfectly valid YAML, although yamllint does issue...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am still getting this error 😕
I got pass the initial failure of not being able to parse
!Sub
by converting a line like:Prop: !Sub "my-sub-${RefValue}"
throws an error:☯ sam validate -t sam.yaml 2017/08/14 11:12:19 0.1.0 ERROR: Invalid indentation in template (line: 586; col: 0)
to
and got this error: