Manages a CDN Profile to create a collection of CDN Endpoints.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_cdn_profile" "example" {
name = "exampleCdnProfile"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
sku = "Standard_Verizon"
tags = {
environment = "Production"
cost_center = "MSFT"
}
}
The following arguments are supported:
name
- (Required) Specifies the name of the CDN Profile. Changing this forces a new resource to be created.
resource_group_name
- (Required) The name of the resource group in which to create the CDN Profile. Changing this forces a new resource to be created.
location
- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
sku
- (Required) The pricing related information of current CDN profile. Accepted values are Standard_Akamai
, Standard_ChinaCdn
, Standard_Microsoft
, Standard_Verizon
or Premium_Verizon
. Changing this forces a new resource to be created.
tags
- (Optional) 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 the CDN Profile.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the CDN Profile.update
- (Defaults to 30 minutes) Used when updating the CDN Profile.read
- (Defaults to 5 minutes) Used when retrieving the CDN Profile.delete
- (Defaults to 30 minutes) Used when deleting the CDN Profile.CDN Profiles can be imported using the resource id
, e.g.
terraform import azurerm_cdn_profile.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Cdn/profiles/myprofile1