diff --git a/examples/azure-cdn-with-storage-account/deploy.ci.sh b/examples/azure-cdn-with-storage-account/deploy.ci.sh index dcb4de86e3..3fd0efac3f 100755 --- a/examples/azure-cdn-with-storage-account/deploy.ci.sh +++ b/examples/azure-cdn-with-storage-account/deploy.ci.sh @@ -13,7 +13,7 @@ docker run --rm -it \ hashicorp/terraform:light \ -c "/bin/terraform get; \ /bin/terraform validate; \ - /bin/terraform plan -out=out.tfplan -var resource_group=$KEY -var host_name=$KEY; \ + /bin/terraform plan -out=out.tfplan -var resource_group=$KEY; \ /bin/terraform apply out.tfplan" #TODO: how do we validate? @@ -28,4 +28,4 @@ docker run --rm -it \ --workdir=/data \ --entrypoint "/bin/sh" \ hashicorp/terraform:light \ - -c "/bin/terraform destroy -force -var resource_group=$KEY -var host_name=$KEY;" + -c "/bin/terraform destroy -force -var resource_group=$KEY;" diff --git a/examples/azure-cdn-with-storage-account/main.tf b/examples/azure-cdn-with-storage-account/main.tf index b161e37258..1f9c9ecbf8 100644 --- a/examples/azure-cdn-with-storage-account/main.tf +++ b/examples/azure-cdn-with-storage-account/main.tf @@ -25,7 +25,7 @@ resource "azurerm_cdn_endpoint" "cdnendpt" { origin { name = "${var.resource_group}Origin1" - host_name = "www.${var.host_name}.com" + host_name = "${var.host_name}" http_port = 80 https_port = 443 } diff --git a/examples/azure-cdn-with-storage-account/variables.tf b/examples/azure-cdn-with-storage-account/variables.tf index e42c937ab0..d9bf51015d 100644 --- a/examples/azure-cdn-with-storage-account/variables.tf +++ b/examples/azure-cdn-with-storage-account/variables.tf @@ -8,10 +8,11 @@ variable "location" { } variable "storage_account_type" { - description = "Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group." + description = "Specifies the type of the storage account" default = "Standard_LRS" } variable "host_name" { - description = "Storage account endpoint. This template requires that the user creates a public container in the Storage Account in order for CDN Endpoint to serve content from the Storage Account." + description = "A string that determines the hostname/IP address of the origin server. This string could be a domain name, IPv4 address or IPv6 address." + default = "www.hostnameoforiginserver.com" } \ No newline at end of file