Manages a Front Door (standard/premium) Rule Set.
resource "azurerm_resource_group" "example" {
name = "example-cdn-frontdoor"
location = "West Europe"
}
resource "azurerm_cdn_frontdoor_profile" "example" {
name = "example-profile"
resource_group_name = azurerm_resource_group.example.name
sku_name = "Standard_AzureFrontDoor"
}
resource "azurerm_cdn_frontdoor_rule_set" "example" {
name = "ExampleRuleSet"
cdn_frontdoor_profile_id = azurerm_cdn_frontdoor_profile.example.id
}
The following arguments are supported:
name
- (Required) The name which should be used for this Front Door Rule Set. Changing this forces a new Front Door Rule Set to be created.
cdn_frontdoor_profile_id
- (Required) The ID of the Front Door Profile. Changing this forces a new Front Door Rule Set to be created.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Front Door Rule Set.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Front Door Rule Set.read
- (Defaults to 5 minutes) Used when retrieving the Front Door Rule Set.delete
- (Defaults to 30 minutes) Used when deleting the Front Door Rule Set.Front Door Rule Sets can be imported using the resource id
, e.g.
terraform import azurerm_cdn_frontdoor_rule_set.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1