vmware / terraform-provider-vcd

Terraform VMware Cloud Director provider
https://www.terraform.io/docs/providers/vcd/
Mozilla Public License 2.0
151 stars 112 forks source link

Add vcd_org_vdc_template resource and data source #1276

Closed adambarreiro closed 5 months ago

adambarreiro commented 5 months ago

Overview

This PR adds a new resource and data source vcd_org_vdc_template, which allows to manage and read VDC Templates, respectively.

The configuration of a VDC template is similar to a VDC, naturally. The main special peculiarity is the "Binding" concept, which is briefly explained at https://github.com/vmware/go-vcloud-director/pull/686 and put into practice here. In the code, we use a unique Binding ID for each field: External network, Gateway edge cluster and Services edge cluster. Like in UI, on updates they get simply regenerated.

Also, at some points there are special quirks, that are explained with comments, and if they affect the user, also in the documentation.

Tests

Related

The resource to instantiate VDC Templates is in PR #1280