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
When validating a template that contains a Dynamodb Stream Event with a BatchSize I get the following error: panic: interface conversion: interface {} is int, not string. The complete stack trace is added below.
Reproduce
The following example yaml file (from AWS examples under Events) gives me the same error:
When I change BatchSize: 100 to BatchSize: '100' the template is found valid.
$ sam validate
2017/08/14 10:38:01 0.1.0
Valid!
Further digging
$ aws cloudformation validate-template doesn't care about whether BatchSize is a string or an integer.
I hope this is enough information, let me know I can supply you with anything else!
The text was updated successfully, but these errors were encountered:
We're rewriting some of the library we use for CloudFormation/SAM parsing (github.com/awslabs/goformation) to make it more resilient against issues like this.
I can confirm this bug is fixed in the 0.1.0 branch of goformation, however we've got a bit more work to do before we can start using it in SAM Local. Shouldn't be much longer.
Issue
When validating a template that contains a Dynamodb Stream Event with a BatchSize I get the following error:
panic: interface conversion: interface {} is int, not string
. The complete stack trace is added below.Reproduce
The following example yaml file (from AWS examples under Events) gives me the same error:
Run:
Output:
Fix
When I change
BatchSize: 100
toBatchSize: '100'
the template is found valid.$ sam validate 2017/08/14 10:38:01 0.1.0 Valid!
Further digging
$ aws cloudformation validate-template
doesn't care about whether BatchSize is a string or an integer.I hope this is enough information, let me know I can supply you with anything else!
The text was updated successfully, but these errors were encountered: