-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
59 lines (51 loc) · 1.96 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
variable "identifier" {
description = "Unique identifier to differentiate global resources."
type = string
validation {
condition = length(var.identifier) > 2
error_message = "Identifier must be at least 3 characters"
}
}
variable "domain" {
description = "Custom domain pointed to the CloudFront distribution."
type = string
}
variable "zone_id" {
description = "ID of the public hosted zone for the domain."
type = string
default = ""
}
variable "price_class" {
description = "Price class for the CloudFront distribution."
type = string
default = "PriceClass_All"
validation {
condition = var.price_class == "PriceClass_All" || var.price_class == "PriceClass_200" || var.price_class == "PriceClass_100"
error_message = "Price class must be one of these values: 'PriceClass_All', 'PriceClass_200', 'PriceClass_100'"
}
}
variable "min_ttl" {
description = "Minimum amount of time (in seconds) that you want objects to stay in CloudFront caches before CloudFront queries the origin to see whether the object has been updated."
type = number
default = 0
}
variable "default_ttl" {
description = "Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an 'Cache-Control max-age' or 'Expires' header."
type = number
default = 3600
}
variable "max_ttl" {
description = "Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated."
type = number
default = 86400
}
variable "ip_rate_limit" {
description = "Rate limit for traffic from the same IP address over a time period of 5 minutes."
type = number
default = 0
}
variable "tags" {
description = "A map of tags to add to all resources."
type = map(string)
default = {}
}