Create or update a catalog item from a Google Cloud Deployment Manager (GDM) template
Instead of generating a catalog item based on a blueprint, you can generate a catalog item based on a template that is held in the GDM configuration management system. The system parses the attributes in both the template file and optional supporting files and then generates a blueprint and a catalog item.
Vorbereitungen
Warum und wann dieser Vorgang ausgeführt wird
Cloud Provisioning and Governance supports Google Cloud Platform templates managed by Cloud Deployment Manager (GDM) that were created in YAML, Python, or Jinja2.
The procedure to create a catalog item from a template involves the following steps:
- Create and save a catalog item record that references the template. The catalog item is in Draft state. In a later step, you activate the catalog item to make it available to cloud users.
- Create a cloud template record. The cloud template specifies a
configuration installable (a directory structure that includes the template
file) to use as the source of the catalog item. Hinweis:You can update the cloud template record later, by referencing an updated configuration installable. Instructions are included in this procedure.
- Google Cloud Platform only: If the template file depends on supporting files (typically updates or template code that specifies attribute settings), you add the files to the Dependent Templates related list.
- Activate the cloud template to generate a resource block and blueprint that are associated with the catalog item and to make the cloud template available for use by the catalog item.
- Activate the catalog item so that cloud users in the Cloud User Portal can use it to provision resources.