-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
80 lines (67 loc) · 1.74 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
# Be aware of about variables with default values
variable "force_tls" {
description = "redirect all non-HTTPS requests to HTTPS"
default = "true"
}
variable "index_file" {
description = "Index document"
default = "index.html"
}
variable "error_file" {
description = "Error document"
default = "error.html"
}
variable "versioning" {
description = "Is versioning needed true/false"
default = "true"
}
variable "transition_days" {
description = "how many days you need files as hot"
default = 30
}
variable "gzip_extensions" {
description = "file extensions for gzip"
type = "list"
default = ["css", "js", "html", "eot", "ico", "otf", "ttf", "json"]
}
variable "gzip_content_types" {
description = "content headers for gzip"
type = "list"
default = [
"text/html application/x-javascript",
"text/css",
"application/javascript",
"text/javascript",
"application/json",
"application/vnd.ms-fontobject",
"application/x-font-opentype",
"application/x-font-truetype",
"application/x-font-ttf",
"application/xml",
"font/eot",
"font/opentype",
"font/otf",
"image/svg+xml",
"image/vnd.microsoft.icon",
"text/plain",
"text/xml",
]
}
# /variables with default values
variable "bucket_name" {
description = "S3 bucket name for hosted files"
}
variable "fastly_dns_name" {
description = "DNS Name of static hosting website"
}
variable "office_cidrs" {
description = "List of IP CIDRs to whitelist"
type = "list"
}
variable "custom_vcl" {
description = "rendered output of custom vcl template. Set to false if you don't want to use"
}
variable "tags" {
description = "A map of tags to add to all resources"
default = {}
}