Skip to content

azurermCdnFrontdoorRuleSet

Manages a Front Door (standard/premium) Rule Set.

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-cdn-frontdoor",
  }
);
const azurermCdnFrontdoorProfileExample =
  new azurerm.cdnFrontdoorProfile.CdnFrontdoorProfile(this, "example_1", {
    name: "example-profile",
    resource_group_name: azurermResourceGroupExample.name,
    sku_name: "Standard_AzureFrontDoor",
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermCdnFrontdoorProfileExample.overrideLogicalId("example");
const azurermCdnFrontdoorRuleSetExample =
  new azurerm.cdnFrontdoorRuleSet.CdnFrontdoorRuleSet(this, "example_2", {
    cdn_frontdoor_profile_id: azurermCdnFrontdoorProfileExample.id,
    name: "ExampleRuleSet",
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermCdnFrontdoorRuleSetExample.overrideLogicalId("example");

Arguments Reference

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.

  • cdnFrontdoorProfileId - (Required) The ID of the Front Door Profile. Changing this forces a new Front Door Rule Set to be created.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Front Door Rule Set.

Timeouts

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.
  • update - (Defaults to 30 minutes) Used when updating the Cdn Frontdoor Rule Set.

Import

Front Door Rule Sets can be imported using the resourceId, 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