Created
November 8, 2023 02:19
-
-
Save johndowns/b3081139c80ce4aa9457ea3347f47f58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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