-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
175 lines (136 loc) · 3.67 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
variable "bucket_name" {
description = "Full name for S3 bucket"
type = string
}
variable "create_bucket" {
description = "Should this module create and manage this S3 bucket?"
default = true
}
variable "standard_tags" {}
variable "cloudfront_origin_access_identity_path" {
description = "CloudFront origin access identity path to use if not creating the S3 bucket"
type = string
default = ""
}
variable "cloudfront_origin_access_identity_iam_arn" {
description = "CloudFront origin access identity iam_arn to use in the S3 bucket policy if not creating the CloudFront origin access identity"
type = string
default = ""
}
variable "s3_region" {
type = string
description = "AWS region for S3 bucket"
}
variable "cloudfront_fqdn" {
description = "FQDN for the cloudfront distribution"
type = string
default = ""
}
variable "cloudfront_acm_cert_domain" {
description = "ACM domain to lookup for cert for cloudfront web distribution"
type = string
}
variable "route53_toplevel_zone" {
description = "The top level zone for DNS"
type = string
}
variable "iam_policy_resources_path" {
description = "path inside bucket for policy, default /*"
default = "/*"
}
variable "bucket_acl" {
default = "private"
}
variable "bucket_force_destroy" {
default = false
}
variable "bucket_cors_allowed_headers" {
default = ["*"]
}
variable "bucket_cors_allowed_methods" {
default = ["GET", "HEAD"]
}
variable "bucket_cors_extra_allowed_origins" {
type = list(string)
default = []
}
variable "bucket_cors_expose_headers" {
type = list(string)
default = ["ETag"]
}
variable "bucket_cors_max_age_seconds" {
default = 3000
}
# Cloudfront
variable "cloudfront_origin_path" {
description = "Optional path inside bucket to request resources from"
default = ""
}
variable "cloudfront_comment" {
type = string
default = ""
}
variable "cloudfront_default_root_object" {
default = "index.html"
}
variable "cloudfront_aliases" {
type = list(string)
default = []
}
variable "cloudfront_price_class" {
default = "PriceClass_All"
}
variable "cloudfront_default_cache_allowed_methods" {
default = ["DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT"]
}
variable "cloudfront_default_cache_cached_methods" {
default = ["GET", "HEAD"]
}
variable "cloudfront_default_cache_compress" {
default = true
}
variable "cloudfront_default_cache_default_ttl" {
default = 0
}
variable "cloudfront_default_cache_max_ttl" {
default = 0
}
variable "cloudfront_default_cache_min_ttl" {
default = 0
}
variable "cloudfront_default_cache_viewer_protocol_policy" {
default = "redirect-to-https"
}
variable "cloudfront_default_cache_forwarded_values_headers" {
type = list(string)
description = "List of Headers that you want CloudFront to vary upon for this cache behavior. Specify a single item of '*' to include all headers."
default = []
}
variable "cloudfront_default_cache_forwarded_values_query_string" {
description = "Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior."
default = false
}
variable "cloudfront_default_cache_forwarded_cookies" {
default = "all"
}
variable "cloudfront_geo_restriction_type" {
default = "none"
}
variable "cloudfront_cert_min_supported_version" {
default = "TLSv1"
}
variable "cloudfront_cert_ssl_support_method" {
default = "sni-only"
}
variable "cloudfront_enabled" {
default = true
}
variable "cloudfront_ipv6_enabled" {
default = true
}
variable "create_waf_acl" {
default = false
}
variable "waf_acl_default_action" {
default = "ALLOW"
}