-
Notifications
You must be signed in to change notification settings - Fork 16
cfn.getTemplate may return YAML instead of JSON #196
Copy link
Copy link
Open
Description
It appears that cfn.getTemplate may return JSON or YAML, but L126 in lookup.js presumes that it is necessarily JSON. I am trying to deploy a particular stack, but the content is YAML and so it throws an error when parsed as JSON. I'm not sure what dictates which the content is, or if there's a way to determine which it is, except to try one and then try the other if that fails.
Line 126 in 2c6b4b0
| callback(null, JSON.parse(data.TemplateBody)); |
See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels