azurermAppServicePublicCertificate
Manages an App Service Public Certificate.
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.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermAppServicePlanExample = new azurerm.appServicePlan.AppServicePlan(
this,
"example_1",
{
location: azurermResourceGroupExample.location,
name: "example-app-service-plan",
resource_group_name: azurermResourceGroupExample.name,
sku: [
{
size: "S1",
tier: "Standard",
},
],
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermAppServicePlanExample.overrideLogicalId("example");
const azurermAppServiceExample = new azurerm.appService.AppService(
this,
"example_2",
{
app_service_plan_id: azurermAppServicePlanExample.id,
location: azurermResourceGroupExample.location,
name: "example-app-service",
resource_group_name: azurermResourceGroupExample.name,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermAppServiceExample.overrideLogicalId("example");
const azurermAppServicePublicCertificateExample =
new azurerm.appServicePublicCertificate.AppServicePublicCertificate(
this,
"example_3",
{
app_service_name: azurermAppServiceExample.name,
blob: '${filebase64("app_service_public_certificate.cer")}',
certificate_location: "Unknown",
certificate_name: "example-public-certificate",
resource_group_name: azurermResourceGroupExample.name,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermAppServicePublicCertificateExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
appServiceName
- (Required) The name of the App Service. Changing this forces a new App Service Public Certificate to be created. -
resourceGroupName
- (Required) The name of the Resource Group where the App Service Public Certificate should exist. Changing this forces a new App Service Public Certificate to be created. -
certificateName
- (Required) The name of the public certificate. Changing this forces a new App Service Public Certificate to be created. -
certificateLocation
- (Required) The location of the certificate. Possible values arecurrentUserMy
,localMachineMy
andunknown
. Changing this forces a new App Service Public Certificate to be created. -
blob
- (Required) The base64-encoded contents of the certificate. Changing this forces a new App Service Public Certificate to be created.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of the App Service Public Certificate. -
thumbprint
- The thumbprint of the public certificate.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the App Service Public Certificate.read
- (Defaults to 5 minutes) Used when retrieving the App Service Public Certificate.update
- (Defaults to 30 minutes) Used when updating the App Service Public Certificate.delete
- (Defaults to 30 minutes) Used when deleting the App Service Public Certificate.
Import
App Service Public Certificates can be imported using the resourceId
, e.g.