-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Parser: cloudformation template.yaml #580
Comments
Cool - yeah I think that sounds like a good new parser! |
as seen in this issue I linked to here, I found a very nice and documented repo, that makes the code work perfectely. I don't want to just copy it and maintain myself / push the code here and I am seeing if they are ok with extracting the code to a generic section which will be in python so I can work with it in the PR. let me know if that seems like a good idea / if you have a different approach to this / what I wrote is not reflected in the issue I created and I will correct and reconsolidate what I wrote to fit into what I want to happen |
Could work, but not sure. Since the project is coded in Golang I think you'd still need to install the Go library/dependencies before using the Python bindings, so it couldn't simply be "vendored" in like we have done with other dependencies. (see the x.509 parsers) The license seems pretty open, so that's good. This seems more like a custom parser route because even if we included a compiled version of the command and used subprocess, this would be architecture-dependent. |
That is great insight and I didn't even think this was an option to pull in the binary. If the license permits, I'll try to incorporate the golang code to python (like I tried before you said but now that the license is good I can also feel better just taking this code snippet and pushing here) I am concerned that the internal yaml implementation they have is way more stable and easy to extend than in python. |
I recently made a change in the the YAML parser and In the YAML parser I made the YAML loading less strict so it will automatically pull in the custom tags. In I think this might actually the problem for cloudformation templates and other YAML documents with custom tags. |
I believe this may be covered in |
Hello!
I wanted to use
cat template.yaml | jc --yaml
for processing, but the yaml formatter didn't know how to cope with the schemaan example yaml snipper
the error I get is:
I searched online and found:
if you want me to help let me know.
if I were to do it I could add a
jc --cloudformation
and parse the yaml with the special parser or write one myselfthe comments in the beginning of the template are there for further reading and how other tools partially implement supporting cloudformation
The text was updated successfully, but these errors were encountered: