google-cloud-platformgoogle-deployment-manager

Do GCP Deployment Manager templates require a schema file?


Since the templates can store values themselves (in addition to receiving values from the configuration yaml file), is a schema required when we create a template?

If not, is the use of the schema just to enforce which values are required, and the type of values that need to be provided to the template?

EDIT
I'm referring to template schemas, not resource properties schema: https://cloud.google.com/deployment-manager/docs/configuration/templates/using-schemas


Solution

  • Google Deployment Manager does not require that you specify a schema, but you can create one for specific use cases. I use Deployment Manager often, and I just use the standard YAML syntax for my deployments.

    For those interested in learning more:

    Cloud Deployment Manager: Using Schemas