Manages a Front Door (standard/premium) Profile which contains a collection of endpoints and origin groups.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_cdn_frontdoor_profile" "example" {
name = "example-cdn-profile"
resource_group_name = azurerm_resource_group.example.name
sku_name = "Standard_AzureFrontDoor"
tags = {
environment = "Production"
}
}
The following arguments are supported:
name
- (Required) Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
resource_group_name
- (Required) The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
sku_name
- (Required) Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor
and Premium_AzureFrontDoor
. Changing this forces a new resource to be created.
response_timeout_seconds
- (Optional) Specifies the maximum response timeout in seconds. Possible values are between 16
and 240
seconds (inclusive). Defaults to 120
seconds.
tags
- (Optional) Specifies a mapping of tags to assign to the resource.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of this Front Door Profile.
resource_guid
- The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID
attribute.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Front Door Profile.update
- (Defaults to 30 minutes) Used when updating the Front Door Profile.read
- (Defaults to 5 minutes) Used when retrieving the Front Door Profile.delete
- (Defaults to 30 minutes) Used when deleting the Front Door Profile.Front Door Profiles can be imported using the resource id
, e.g.
terraform import azurerm_cdn_frontdoor_profile.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Cdn/profiles/myprofile1