Open nboaldin opened 2 years ago
It looks like Certificate Operation and Attributes are different structs and returned in different ways depending on the API call. The go sdk returns a Certificate Operation which contains the csr when a cert is generated. https://github.com/Azure/azure-sdk-for-go/blob/8974960430e84d7c5b528266b6d2099a50161c46/sdk/keyvault/azcertificates/models.go#L235
Maybe a whole new resource like azurerm_key_vault_pending_certificate
would work. I am currently using the az cli with external data to get the csr:az keyvault certificate pending show
then local-exec - ing to merge the signed cert: az keyvault certificate pending merge
.
Any update on this issue?
This would be very cool.
Community Note
Description
Instead of having to get the csr from the portal, or outside of terraform, I would like to get it as an attribute of the generated certificate.
New or Affected Resource(s)
*azurerm_key_vault_certificate
Potential Terraform Configuration
References
0000