Closed oijkn closed 1 month ago
ok mea no culpa.
CF sometime define a number as a number but sometimes it does care care about its type and treats it as string. I rely on the go formation library which can be blind to this and so the lines for parameters need to be: ` - ParameterName: BufferIntervalInSeconds ParameterValue: "600"
I think you might also want to AWS::KinesisFirehose::DeliveryStream resource adding?
Describe the bug When attempting to convert a CloudFormation template to Terraform using sato, I encountered a parsing error. The command used was:
sato parse -f cf.yaml
The error message returned is:
parse failure parse failure json: cannot unmarshal number into Go struct field Template.Resources of type string
To Reproduce Steps to reproduce the behavior:
sato parse -f cf.yaml
Expected behavior The tool should parse the CloudFormation template and convert it to Terraform without any errors.
Actual behavior The tool fails to parse the template, returning the error:
parse failure parse failure json: cannot unmarshal number into Go struct field Template.Resources of type string
Additional context The issue seems to be related to the handling of numeric values in the CloudFormation template.
Please let me know if additional information is required.