-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
155 lines (127 loc) · 4.13 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
variable "namespace" {
description = "Namespace (forming bucket name)"
type = string
}
variable "stage" {
description = "Stage of environment (e.g. `dev` or `prod`) (forming bucket name)"
type = string
default = "dev"
}
variable "name" {
description = "Name of static content (forming bucket name)"
type = string
}
variable "parent_zone_name" {
description = "Name of the hosted zone to contain this record (or specify parent_zone_id)"
type = string
}
variable "aliases" {
type = list(string)
description = "List of FQDN's - Used to set the Alternate Domain Names (CNAMEs) setting on Cloudfront"
default = []
}
variable "domain" {
description = "A domain name for which certificate will be created"
type = string
}
variable "alternative_names" {
description = "Domian name alternatives for ACM certificate"
type = list(string)
default = []
}
variable "acm_tags" {
type = map(string)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)"
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)"
}
variable "enabled" {
default = true
type = bool
description = "Select Enabled if you want CloudFront to begin processing requests as soon as the distribution is created, or select Disabled if you do not want CloudFront to begin processing requests after the distribution is created."
}
variable "acm_certificate_arn" {
description = "Existing ACM Certificate ARN"
type = string
default = ""
}
variable "use_regional_s3_endpoint" {
type = bool
description = "When set to 'true' the s3 origin_bucket will use the regional endpoint address instead of the global endpoint address"
default = false
}
variable "origin_bucket" {
default = ""
type = string
description = "Name of S3 bucket"
}
variable "origin_force_destroy" {
default = "false"
description = "Delete all objects from the bucket so that the bucket can be destroyed without error (e.g. `true` or `false`)"
}
variable "bucket_domain_format" {
default = "%s.s3.amazonaws.com"
description = "Format of bucket domain name"
}
variable "default_root_object" {
default = "index.html"
description = "Object that CloudFront return when requests the root URL"
}
variable "log_include_cookies" {
default = "false"
description = "Include cookies in access logs"
}
variable "log_prefix" {
default = ""
description = "Path of logs in S3 bucket"
}
variable "log_standard_transition_days" {
description = "Number of days to persist in the standard storage tier before moving to the glacier tier"
default = "30"
}
variable "log_glacier_transition_days" {
description = "Number of days after which to move the data to the glacier storage tier"
default = "60"
}
variable "log_expiration_days" {
description = "Number of days after which to expunge the objects"
default = "90"
}
variable "price_class" {
default = "PriceClass_100"
description = "Price class for this distribution: `PriceClass_All`, `PriceClass_200`, `PriceClass_100`"
}
variable "default_ttl" {
default = "60"
description = "Default amount of time (in seconds) that an object is in a CloudFront cache"
}
variable "min_ttl" {
default = "0"
description = "Minimum amount of time that you want objects to stay in CloudFront caches"
}
variable "max_ttl" {
default = "31536000"
description = "Maximum amount of time (in seconds) that an object is in a CloudFront cache"
}
variable "parent_zone_id" {
default = ""
description = "ID of the hosted zone to contain this record (or specify `parent_zone_name`)"
}
variable "lambda_function_association" {
type = list(object({
event_type = string
include_body = bool
lambda_arn = string
}))
default = []
description = "A config block that triggers a lambda function with specific actions"
}
variable "web_acl_id" {
type = string
default = ""
description = "ID of the AWS WAF web ACL that is associated with the distribution"
}