Prerequisites
Terraform installed
Terraform installed
Install Terraform (v0.13+).
Control Plane provider configured
Control Plane provider configured
Add the Control Plane provider to your Terraform configuration. See Terraform Provider for setup instructions.
Install a Template
Use thecpln_catalog_template resource to install a template from the catalog.
Choose a Template
Browse the available templates in the Template Catalog and identify the template name and version you want to install.
Add a Values File
Create a
values.yaml file in your Terraform project directory with the template’s configuration. Refer to the specific template’s documentation for available options.Define the Resource
Add a Arguments:
cpln_catalog_template resource to your Terraform configuration, referencing the values file:main.tf
- name — A unique release name for this installation.
- template — The name of the catalog template (e.g.,
cockroachdb). - version — The template version to install.
- gvc — The GVC to deploy to. Leave empty if the template creates its own GVC.
- values — YAML-formatted string to customize the template configuration.
Outputs
After applying, the resource exposes aresources attribute containing a list of all Control Plane resources created by the release. Each entry includes:
- kind — The resource type (e.g.,
workload,secret,gvc). - name — The resource name.
- link — The full Control Plane URL for the resource.
Manage a Template
Upgrade
To upgrade a release with new values or a new template version, update theversion argument and/or your values.yaml file and re-apply:
Any workloads affected by the change will roll out new deployments. Unchanged items will not be redeployed.
Preview Changes
Useterraform plan to preview the changes that will be applied before upgrading:
Uninstall a Template
Remove thecpln_catalog_template resource from your configuration and apply: