Skip to content

azurermCdnFrontdoorCustomDomainAssociation

Manages the association between a Front Door (standard/premium) Custom Domain and one or more Front Door (standard/premium) Routes.

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.cdnFrontdoorCustomDomainAssociation.CdnFrontdoorCustomDomainAssociation(
  this,
  "example",
  {
    cdn_frontdoor_custom_domain_id:
      "${azurerm_cdn_frontdoor_custom_domain.contoso.id}",
    cdn_frontdoor_route_ids: [
      "${azurerm_cdn_frontdoor_route.contoso.id}",
      "${azurerm_cdn_frontdoor_route.fabrikam.id}",
    ],
  }
);

Arguments Reference

The following arguments are supported:

  • cdnFrontdoorCustomDomainId - (Required) The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.

  • cdnFrontdoorRouteIds - (Required) One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.

-> NOTE: This should include all of the Front Door Route resources that the Front Door Custom Domain is associated with. If the list of Front Door Routes is not complete you will receive the service side error thisResourceIsStillAssociatedWithARoutePleaseDeleteTheAssociationWithTheRouteFirstBeforeDeletingThisResource when you attempt to destroy/delete your Front Door Custom Domain.

Attributes Reference

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

  • id - The ID of the Front Door Custom Domain Association.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating the Front Door Custom Domain Association.
  • read - (Defaults to 5 minutes) Used when retrieving the Front Door Custom Domain Association.
  • update - (Defaults to 30 minutes) Used when retrieving the Front Door Custom Domain Association.
  • delete - (Defaults to 30 minutes) Used when deleting the Front Door Custom Domain Association.

Import

Front Door Custom Domain Associations can be imported using the resourceId, e.g.

terraform import azurerm_cdn_frontdoor_custom_domain_association.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/associations/assoc1