azurermNginxCertificate
Manages a Certificate for an NGinx Deployment.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.nginxCertificate.NginxCertificate(this, "test", {
certificate_virtual_path: "/src/cert/server.cert",
key_vault_secret_id: "${azurerm_key_vault_secret.test.id}",
key_virtual_path: "/src/cert/soservermekey.key",
name: "examplecert",
nginx_deployment_id: "${azurerm_nginx_deployment.test.id}",
});
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name which should be used for this Nginx Certificate. Changing this forces a new Nginx Certificate to be created. -
nginxDeploymentId
- (Required) The ID of the Nginx Deployment that this Certificate should be associated with. Changing this forces a new Nginx Certificate to be created. -
certificateVirtualPath
- (Required) Specify the path to the cert file of this certificate. Changing this forces a new Nginx Certificate to be created. -
keyVirtualPath
- (Required) Specify the path to the key file of this certificate. Changing this forces a new Nginx Certificate to be created. -
keyVaultSecretId
- (Required) Specify the ID of the Key Vault Secret for this certificate. Changing this forces a new Nginx Certificate to be created.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of this Nginx Certificate.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Nginx Certificate.read
- (Defaults to 5 minutes) Used when retrieving the Nginx Certificate.delete
- (Defaults to 10 minutes) Used when deleting the Nginx Certificate.
Import
An Nginx Certificate can be imported using the resourceId
, e.g.