FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

azurerm_cdn_endpoint

A CDN Endpoint is the entity within a CDN Profile containing configuration information regarding caching behaviors and origins. The CDN Endpoint is exposed using the URL format .azureedge.net by default, but custom domains can also be created.

Example Usage

resource "azurerm_resource_group" "test" {
    name = "acceptanceTestResourceGroup1"
    location = "West US"
}
resource "azurerm_cdn_profile" "test" {
    name = "acceptanceTestCdnProfile1"
    location = "West US"
    resource_group_name = "${azurerm_resource_group.test.name}"
    sku = "Standard"
}

resource "azurerm_cdn_endpoint" "test" {
    name = "acceptanceTestCdnEndpoint1"
    profile_name = "${azurerm_cdn_profile.test.name}"
    location = "West US"
    resource_group_name = "${azurerm_resource_group.test.name}"

    origin {
	    name = "acceptanceTestCdnOrigin1"
	    host_name = "www.example.com"
    }
}

Argument Reference

The following arguments are supported:

The origin block supports:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io