When 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} ```
Activity
sanathkr commentedon Aug 13, 2017
Yet another goformation bug. I'll take a look shortly
pesama commentedon Aug 13, 2017
Fixed on goformation. Need to update this release.
sanathkr commentedon Aug 13, 2017
Need a test case to validate fix before release. Is there one?
hoegertn commentedon Aug 13, 2017
I tried with the project I mentioned above and ran
sam local start-apiorsam validateand both failed with the given error.yyolk commentedon Aug 14, 2017
I got pass the initial failure of not being able to parse
!Subby 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:
jagu-sayan commentedon Mar 6, 2018
I am still getting this error :/
fix: replace sensitive ARN with AWS example ARN format