-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvariables.tf
139 lines (114 loc) · 4.08 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
variable "create_resource_group" {
description = "Whether to create resource group and use it for all networking resources"
default = false
}
variable "resource_group_name" {
description = "The name of the resource group in which resources are created"
default = ""
}
variable "location" {
description = "The location of the resource group in which resources are created"
default = ""
}
variable "storage_account_name" {
description = "The name of the storage account to be created"
default = ""
}
variable "account_kind" {
description = "The kind of storage account."
default = "StorageV2"
}
variable "sku" {
description = "The SKU of the storage account."
default = "Standard_GRS"
}
variable "access_tier" {
description = "The access tier of the storage account."
default = "Hot"
}
variable "enable_https_traffic" {
description = "Configure the storage account to accept requests from secure connections only. Possible values are `true` or `false`"
default = true
}
variable "min_tls_version" {
description = "The minimum supported TLS version for the storage account"
default = "TLS1_2"
}
variable "enable_static_website" {
description = "Controls if static website to be enabled on the storage account. Possible values are `true` or `false`"
default = true
}
variable "upload_to_static_website" {
description = "Wether you want to upload something to the static website. Possible values are `true` or `false`"
default = true
}
variable "static_website_source_folder" {
description = "Set a source folder path to copy static website files to static website storage blob"
default = ""
}
variable "assign_identity" {
description = "Specifies the identity type of the Storage Account. At this time the only allowed value is SystemAssigned."
default = true
}
variable "enable_cdn_profile" {
description = "Controls the creation of CDN profile and endpoint for static website. Possible values are `true` or `false`"
default = false
}
variable "cdn_profile_name" {
description = "Specifies the name of the CDN Profile"
default = ""
}
variable "cdn_sku_profile" {
description = "The pricing related information of current CDN profile. Accepted values are 'Standard_Akamai', 'Standard_ChinaCdn', 'Standard_Microsoft', 'Standard_Verizon' or 'Premium_Verizon'."
default = "Standard_Akamai"
}
variable "index_path" {
description = "path from your repo root to index.html"
default = "index.html"
}
variable "custom_404_path" {
description = "path from your repo root to your custom 404 page"
default = "404.html"
}
variable "custom_domain_name" {
type = string
description = "The custom domain name to use for your website"
default = null
}
variable "friendly_name" {
type = string
description = "The friendly name of your custom domain in the Azure Portal"
}
variable "allowed_methods" {
type = list(string)
description = " A list of http headers that are allowed to be executed by the origin. Valid options are `DELETE`, `GET`, `HEAD`, `MERGE`, `POST`, `OPTIONS`, `PUT` or `PATCH`."
default = [
"GET",
"HEAD"
]
}
variable "allowed_origins" {
type = list(string)
description = "A list of origin domains that will be allowed by CORS."
default = ["*"]
}
variable "allowed_headers" {
type = list(string)
description = "A list of headers that are allowed to be a part of the cross-origin request."
default = ["*"]
}
variable "exposed_headers" {
type = list(string)
description = "A list of response headers that are exposed to CORS clients."
default = ["*"]
}
variable "max_age_in_seconds" {
type = number
description = "The number of seconds the client should cache a preflight response. Defaults to 2 days"
default = 60 * 60 * 24 * 2
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}