-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
105 lines (88 loc) · 2.43 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
variable "service_name" {
description = "tagged with service name"
}
variable "enable_acm_validation" {
description = "Validates ACM by updating route 53 DNS"
type = bool
default = false
}
variable "domain_names" {
description = "domain names to serve site on"
type = list(string)
}
variable "redirect_domain_names" {
description = "domain names to redirect to `domain_names`"
type = list(string)
}
variable "cloudfront_origin_path" {
default = ""
description = "Origin path of CloudFront"
}
variable "route53_zone_id" {
description = "Route53 Zone ID"
type = string
default = ""
}
variable "save_access_log" {
description = "whether save cloudfront access log to S3"
type = bool
default = false
}
variable "lambda_function_associations" {
description = "CloudFront Lambda function associations. key is CloudFront event type and value is lambda function ARN with version"
type = map(string)
default = {}
}
variable "cors_allowed_origins" {
description = "CORS allowed origins"
type = list(string)
default = []
}
variable "s3_logging_bucket" {
description = "Bucket which will store s3 access logs"
type = string
default = ""
}
variable "s3_logging_bucket_prefix" {
description = "Bucket which will store s3 access logs"
type = string
default = ""
}
variable "permissions_boundary" {
description = "If provided, all IAM roles will be created with this permissions boundary attached."
type = string
default = ""
}
variable "main_default_ttl" {
description = "default TTL of the main cloudfront distribution"
default = 180
type = number
}
variable "web_acl_id" {
description = "WAF ACL to attach to the cloudfront distribution"
default = ""
type = string
}
variable "ordered_cache_behaviors" {
description = ""
default = []
type = list(object({
path = string
function-associations = map(string)
}))
}
variable "forward_query_string" {
description = "forward query strings to origin"
default = false
type = bool
}
variable "content_security_policy" {
description = "Formatted CSP in string"
default = "default-src 'none';"
type = string
}
variable "enable_compression" {
description = "Toggle whether the default cache behaviour has compression enabled"
default = true
type = bool
}