3

It's hard to navigate through all the docs given the number of services and properties involved in creating templates for the Deployment Manager. I wonder if there is a solution for that. I imagine that code editors like VS-Code are supposed to have autocomplete, maybe GCP provides something to help write templates faster.

stkvtflw
  • 12,092
  • 26
  • 78
  • 155
  • Console shell have autocomplete but what do you exactly mean by automcomplete in Deployment Manager? In `Cloud Shell Editor`? Autocomplete when you would create templates? – PjoterS Feb 18 '22 at 12:31
  • @PjoterS I'm sure he means the last option: autocomplete when you are editing the templates. I have not found any JSON Schema for that. Schema Store has one for AWS Cloud Formation, but not for GCP Deployment Manager. – Leonardo Salazar Feb 19 '22 at 23:12
  • interesting. All the schemas are available here: https://cloud.google.com/deployment-manager/docs/configuration/supported-resource-types – stkvtflw Feb 20 '22 at 08:47
  • @stkvtflw honestly I doubt that Cloud shell editor have this option. Those schemas will help you or provide workaround? – PjoterS Feb 21 '22 at 10:11

1 Answers1

0

I doubt that there is something like autocomplete for Deployment Manager Templates.

Deployment Manager accepts both Jinja and Python syntax in the same configuration as mentioned in Template Syntax

Deployment Manager accepts both Jinja and Python templates. You can import templates in both languages in the same configuration.

As OP stkvtflw mentioned, there is already documentation which covers all schemas in GCP Documentation - Supported resource types.

Additional samples can be found in Github repository, which can be found here

Regarding the possibility to use autocomplete in Deployment Manager, there is a still opened Github Feature Request to Add support for auto completion of configuration files.

In addition to that, you could file a Feature Request in Google Issue Tracker.

PjoterS
  • 12,841
  • 1
  • 22
  • 54