Use this data source to access information about an existing NGINX Certificate.
data "azurerm_nginx_certificate" "example" {
name = "existing"
nginx_deployment_id = azurerm_nginx_deployment.example.id
}
output "id" {
value = data.azurerm_nginx_certificate.example.id
}
The following arguments are supported:
name
- (Required) The name of the NGINX Certificate.
nginx_deployment_id
- (Required) The ID of the NGINX Deployment that the certificate is associated with.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the NGINX Certificate.
certificate_virtual_path
- The path to the certificate file of the certificate.
key_virtual_path
- The path to the key file of the certificate.
key_vault_secret_id
- The ID of the Key Vault Secret for the certificate.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the NGINX Certificate.