Skip to content

Commit 8a5beb1

Browse files
committed
Update configs
1 parent 31f51c7 commit 8a5beb1

File tree

3 files changed

+39
-12
lines changed

3 files changed

+39
-12
lines changed

modules/azurerm/Storage-Account-Static-Website-CDN-FrontDoor/cdn_frontdoor.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
resource "azurerm_cdn_frontdoor_profile" "cdn_frontdoor_profile" {
2222
name = join("-", [var.cdn_frontdoor_profile_abbreviation, var.cdn_frontdoor_profile_name])
2323
resource_group_name = var.resource_group_name
24-
location = var.location
2524
sku_name = var.cdn_frontdoor_profile_sku_name
2625
response_timeout_seconds = var.response_timeout_seconds
2726
tags = var.tags
@@ -30,6 +29,6 @@ resource "azurerm_cdn_frontdoor_profile" "cdn_frontdoor_profile" {
3029
resource "azurerm_cdn_frontdoor_endpoint" "cdn_frontdoor_endpoint" {
3130
name = join("-", [var.cdn_frontdoor_endpoint_abbreviation, var.cdn_frontdoor_endpoint_name])
3231
cdn_frontdoor_profile_id = azurerm_cdn_frontdoor_profile.cdn_frontdoor_profile.id
33-
enabled = var.enabled
32+
enabled = var.cdn_frontdoor_endpoint_enabled
3433
tags = var.tags
3534
}

modules/azurerm/Storage-Account-Static-Website-CDN-FrontDoor/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ output "cdn_frontdoor_profile_id" {
5353
value = azurerm_cdn_frontdoor_profile.cdn_frontdoor_profile.id
5454
}
5555

56-
output "cdn_frontdoor_endpoint_fqdn" {
56+
output "cdn_frontdoor_endpoint_hostname" {
5757
depends_on = [azurerm_cdn_frontdoor_endpoint.cdn_frontdoor_endpoint]
58-
value = azurerm_cdn_frontdoor_endpoint.cdn_frontdoor_endpoint.fqdn
58+
value = azurerm_cdn_frontdoor_endpoint.cdn_frontdoor_endpoint.host_name
5959
}
6060

6161
output "cdn_frontdoor_endpoint_id" {

modules/azurerm/Storage-Account-Static-Website-CDN-FrontDoor/variables.tf

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,8 @@ variable "storage_account_name" {
2323
type = string
2424
}
2525

26-
variable "location" {
27-
description = "Azure location where the resource exists"
28-
type = string
29-
}
30-
3126
variable "resource_group_name" {
32-
description = "Name of the resource group in which the EventHub Namespace exists"
27+
description = "Name of the resource group"
3328
type = string
3429
}
3530

@@ -84,15 +79,25 @@ variable "allow_nested_items_to_be_public" {
8479

8580
variable "network_rules_bypass" {
8681
default = ["AzureServices"]
87-
description = "List of actions that bypass the network rule. Defaults to []"
82+
description = "List of actions that bypass the network rule."
8883
type = list(string)
8984
}
9085

86+
variable "cdn_frontdoor_profile_name" {
87+
description = "Name of the CDN Frontdoor profile"
88+
type = string
89+
}
90+
9191
variable "cdn_frontdoor_profile_sku_name" {
9292
description = "The pricing tier of the CDN Frontdoor profile"
9393
type = string
9494
}
9595

96+
variable "cdn_frontdoor_endpoint_name" {
97+
description = "Name of the CDN endpoint"
98+
type = string
99+
}
100+
96101
variable "cross_tenant_replication_enabled" {
97102
default = false
98103
description = "Enable or disable cross tenant replication"
@@ -108,5 +113,28 @@ variable "network_rules_enabled" {
108113
variable "response_timeout_seconds" {
109114
description = "The response timeout for the Front Door Profile."
110115
type = number
111-
default = 240
116+
default = 30
117+
}
118+
119+
variable "cdn_frontdoor_profile_abbreviation" {
120+
description = "Abbreviation for CDN Frontdoor Profile"
121+
type = string
122+
default = "cdnp"
123+
}
124+
125+
variable "cdn_frontdoor_endpoint_abbreviation" {
126+
description = "Abbreviation for CDN Frontdoor Endpoint"
127+
type = string
128+
default = "cdne"
129+
}
130+
131+
variable "cdn_frontdoor_endpoint_enabled" {
132+
description = "CDN Frontdoor Endpoint Enabled or Not"
133+
type = bool
134+
default = true
135+
}
136+
137+
variable "location" {
138+
description = "Azure region"
139+
type = string
112140
}

0 commit comments

Comments
 (0)