Skip to content

Instantly share code, notes, and snippets.

@johndowns
Created November 8, 2023 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndowns/b3081139c80ce4aa9457ea3347f47f58 to your computer and use it in GitHub Desktop.
Save johndowns/b3081139c80ce4aa9457ea3347f47f58 to your computer and use it in GitHub Desktop.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "Australia East"
}
resource "azurerm_cdn_profile" "example" {
name = "examplejdcdn1"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
sku = "Standard_Verizon" // This represents Azure CDN from Edgio (standard)
}
resource "azurerm_cdn_endpoint" "example" {
name = "examplejdcdn1"
profile_name = azurerm_cdn_profile.example.name
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
origin {
name = "example"
host_name = "www.contoso.com"
}
}
terraform {
required_version = ">=1.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~>3.0"
}
random = {
source = "hashicorp/random"
version = "~>3.0"
}
}
}
provider "azurerm" {
features {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment