vmware / terraform-provider-vcf

Terraform Provider for VMware Cloud Foundation
https://registry.terraform.io/providers/vmware/vcf/
Mozilla Public License 2.0
20 stars 9 forks source link

Add support for `d/vcf_certificate_authority` #206

Open insidepacket opened 1 month ago

insidepacket commented 1 month ago

Code of Conduct

Description

Add data resource for certificate_authority that can be used in the certificate renewal and other related resources.

Use Case(s)

When we replace a certificate for a domain resource (VCENTER, SDDC_MANAGER) with another certificate, we need to add the certificate_authority resource to the TF template. This makes the certificate_authority resource editable, which is unnecessary for certificate renewal. It also (1) adds unnecessary complexity by including the CA configuration in a certificate renewal TF template, (2) introduces a risk of incorrect CA configuration changes due to human error, and (3) prevents customers from using terraform destroy for the cert renewal TF template as it will remove the CA configuration.

Potential Configuration

data vcf_certificate_authority "example" {
    name = var.ca_name
    type = "microsoft"
}

References

No response

tenthirtyam commented 3 weeks ago

Assigned to Ryan Johnson, VMware by Broadcom.

tenthirtyam commented 3 weeks ago

Reassigned to David Zhang, VMware by Broadcom.