aws-scripting-guy / cform-VSCode

CloudFormation extension for Visual Studio Code
86 stars 36 forks source link

YAML Support #3

Closed johnmckinzie closed 6 years ago

johnmckinzie commented 8 years ago

Add support for new CloudFormation YAML templates.

https://aws.amazon.com/about-aws/whats-new/2016/09/aws-cloudformation-introduces-yaml-template-support-and-cross-stack-references/

aws-scripting-guy commented 7 years ago

Hi there. Looking into transformation options.

Pitta commented 6 years ago

Hows this coming?

reidca commented 6 years ago

I would love to see YAML support. I do all my cloudformation in YAML these days so unfortunately this tool is not much use to me.

It also seems to me that the majority of sample templates provided by AWS these days come in YAML and it appears to be the primary format from what I can see so it would make much sense to add YAML support.

xBytez commented 6 years ago

I recently made the switch from JSON to YAML too for CFM. I'd love to see YAML support as well.

andrewhharmon commented 6 years ago

+1

Marakai commented 6 years ago

I'll throw in my +1 for YAML support as I don't really want to go back to JSON.

However, with the last commit a year old and a PR still open from Dec 2017 I wonder if this is still alive at all?

aws-scripting-guy commented 6 years ago

Yep I am still alive :)

YAML snippet support didn't worked well pre-2018. Now I tested it out with YAML language support from Red hat and it works flawlessly.

Check out test YAML support in release 0.0.11. Syntax is the same - startto populate basic template, in the time of the writing there's only vpc and tag resource available through YAML snippet. I'll need to rewrite all of the snippets (manually) so please check out new releases for full support.

rhbecker commented 6 years ago

I can't seem to get this to work.

  1. Installed v0.0.12.
  2. Restarted vs code.
  3. Created new file.
  4. Set language mode to YAML.
  5. Typed start and hit tab.

... nothing happens. Following the same steps, but using JSON for step 4 works fine.

aws-scripting-guy commented 6 years ago

Do you have YAML language server installed? E.g. redhat.vscode-yaml

rhbecker commented 6 years ago

I did not (didn't read your post closely enough to realize I had to install a dependency), but now I do and it's working. Thanks!

aws-scripting-guy commented 6 years ago

Thank you for confirming. I will add this step in the README.

iDVB commented 5 years ago

I had this all working previously but suddenly it stopped working for YAML only. JSON works but typing start in a yaml template does nothing.

I have this plugin installed. https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml and I can confirm it seems to be working.

sabumike commented 5 years ago

Please let me know when to expect YAML support on VSCode. It does not seem to work.