-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
39 lines (33 loc) · 1.04 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
variable "endpoint" {
description = "CDN endpoint name (XX.azureedge.net)"
}
variable "storage_account_name" {
description = "The name of the storage account, must be globaly unique."
}
variable "location" {
default = "UK South"
description = "Location for the resource group and storage account."
}
variable "cdn_location" {
default = "West Europe"
description = "Location for the CDN profile and endpoint."
}
variable "sa_replication_type" {
description = "The storage account replication type. Valid values are: LRS, ZRS, GRS, RA-GRS"
default = "LRS"
validation {
condition = contains(
["LRS", "ZRS", "GRS", "RA-GRS"],
var.sa_replication_type
)
error_message = "Variable sa_replication_type must be one of: LRS, ZRS, GRS, RA-GRS."
}
}
variable "resource_group_name" {
description = "The name of the resource group to store all resources in."
default = "website-rg"
}
variable "cache_expiration_time" {
description = "How long the CDN endpoint will cache pages for."
default = "00:00:10"
}