-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
98 lines (82 loc) · 2.31 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
variable "aliases" {
description = "Extra hostnames handled by the distribution"
type = list(string)
default = []
}
variable "basic_auth" {
description = "HTTP basic authentication block"
type = any
default = {}
}
variable "bucket" {
description = "S3 bucket used as the CloudFront origin"
type = string
}
variable "create_acm_cert" {
description = "If false, do not create ACM cert"
default = true
}
variable "create_route53_record" {
description = "If false, do not create Route53 alias"
default = true
}
variable "domain" {
description = "The primary domain used in the S3 prefix, to create Route 53 records, and ACM certificates."
}
variable "enabled" {
description = "Allow the distribution to accept requests"
default = true
}
variable "geo_restriction" {
description = "Location restrictions"
type = object({
locations = list(string)
restriction_type = string
})
default = {
locations = null
restriction_type = "none"
}
}
variable "hostname" {
description = "The primary hostname used in the S3 prefix, to create Route 53 records, and ACM certificates."
default = null
}
variable "lambda_function_association" {
description = "A config block that triggers a lambda function with specific actions"
type = map(map(string))
default = {}
}
variable "log_bucket" {
description = "Log bucket (Default is log-region-account)"
default = null
}
variable "origin_access_identity_path" {
description = "CloudFront origin access identity for this origin"
}
variable "origin_path" {
description = "Set specific origin path within S3 bucket instead of default value derived from FQDN"
default = null
}
variable "price_class" {
description = "Price class for this distribution"
default = "PriceClass_All"
}
variable "redirect" {
description = "Enables appending index.html to requests ending in a slash (Defaults to true)"
default = true
}
variable "tags" {
description = "Tags to be applied to resources where supported"
type = map(string)
default = {}
}
variable "ttl" {
description = "Time-to-live configuration"
type = object({
default = optional(number, null)
max = optional(number, null)
min = optional(number, null)
})
default = {}
}