VMware Cloud Provider Developer Ready Cloud Terraform VMware Cloud Director

Terraform VCD Provider 3.5.0 General Availability

We begin a new year with a new Terraform VMware Cloud Director Provider release – 3.5.0 with support for tenant operations for the NSX-T Advanced Load Balancer (ALB) and many other features. (Note: the provider part of the ALB has been introduced in the previous release.)

Additional way of connecting to VCD with API Token

VCD 10.3.1 adds the capability of generating an API access token for provider and tenant. These tokens cannot be used directly to authenticate against a VCD: users should first exchange the token for a bearer token using a REST API call and then connect as usual with the new token. The VCD Terraform plugin 3.5.0, however, makes things simpler by exchanging the API token for a bearer token and use it transparently. All users need to do is providing the following in the provider block:

Ability to set Lease for a vApp

The vcd_vapp resource and corresponding data source add the ability of setting the lease period for run time and storage. The lease is indicated in seconds. A lease of 0 means that the vApp takes the default lease as it was set in the parent organization.

Initial VDC Group support

This release adds ability for providers and Org users (with certain rights) to create and manage NSX-T VDC Groups. Here is a quick example on how to configure one using Terraform:

Only System Administrator and Org Users with rights View VDC Group,  Configure VDC Group,  vDC Group: Configure Logging,  Organization vDC Distributed Firewall: Enable/Disable can manage VDC groups using this resource.

NSX-T Advanced Load Balancer

Terraform provider VCD release 3.4.0 introduced resources to configure NSX-T ALB infrastructure for
providers. The latest release 3.5.0 continued to evolve the NSX-T ALB support, but this time it focused
on NSX-T Edge Gateway side of configuration. It is now complete with 4 new resources and data sources in 3.5.0:

vcd_nsxt_alb_settings and vcd_nsxt_alb_edgegateway_service_engine_group still require provider
interaction to enable ALB on a particular Edge Gateway, but vcd_nsxt_alb_pool and vcd_nsxt_alb_virtual_service
are made for tenants and this is where actual load balancer configuration happens.

Have a look at a new page in our Guides section dedicated for NSX-T ALB for a complete
overview and example.

Here is a brief example demonstrating how tenants can define an NSX-T ALB Pool and then consume it
in virtual service:

Ability to configure Certificates

Certificates in the Certificates library can be used when creating secured services.
This is how easy it is to add one:

Please see examples how to reference them in the new Load Balancer resources here:

More information

As usual, there is more than that – please see complete changelog for the full picture.

Also, documentation:
https://registry.terraform.io/providers/vmware/vcd/latest/docs

And, as always with the new Terraform VCD Provider release, we have released a new version of the govcd library (Go language library for VCD). If you’re developing a VCD client with Go, please update:

https://github.com/vmware/go-vcloud-director/releases/tag/v2.14.0

https://github.com/vmware/go-vcloud-director/blob/v2.14.0/CHANGELOG.md