As part of my resources section I'm creating an API Gateway method (independent of lambda). I'm trying to set the IntegrationResponses using the Yaml like so:
- StatusCode: 200
This is valid Cloudformation Yaml. However Serverless upon deploy converts it to JSON and uploads to S3. Looking at the JSON output the result is:
It appears that during the conversion to JSON the Yaml key is being separated by the dots and turned into a nested object. This is no longer valid Cloudformation and fails with
An error occurred while provisioning your stack: ServiceWorkerMethod
- Value of property ResponseParameters must be an object with String (or simple type) properties.
How can I prevent this conversion. The expected output is also present, so how do I stop that nested object from being created. I have tried many many combinations of quotes and formatting with no luck.