This repository has been archived by the owner on Feb 10, 2023. It is now read-only.
forked from cloudposse/terraform-aws-cloudfront-s3-cdn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
171 lines (133 loc) · 3.06 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
variable "name" {}
variable "namespace" {}
variable "stage" {}
variable "tags" {
default = {}
}
variable "delimiter" {
default = "-"
}
variable "enabled" {
default = "true"
}
variable "acm_certificate_arn" {
description = "Existing ACM Certificate ARN"
default = ""
}
variable "aliases" {
type = "list"
description = "List of FQDN's - Used to set the Alternate Domain Names (CNAMEs) setting on Cloudfront"
default = []
}
variable "origin_bucket" {
default = ""
}
variable "origin_path" {
# http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath
description = "(Optional) - An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. It must begin with a /. Do not add a / at the end of the path."
default = ""
}
variable "origin_force_destroy" {
default = "false"
}
variable "bucket_domain_format" {
default = "%s.s3.amazonaws.com"
}
variable "compress" {
default = "false"
}
variable "is_ipv6_enabled" {
default = "true"
}
variable "default_root_object" {
default = "index.html"
}
variable "comment" {
default = "Managed by Terraform"
}
variable "log_include_cookies" {
default = "false"
}
variable "log_prefix" {
default = ""
}
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 "forward_query_string" {
default = "false"
}
variable "cors_allowed_headers" {
type = "list"
default = ["*"]
}
variable "cors_allowed_methods" {
type = "list"
default = ["GET"]
}
variable "cors_allowed_origins" {
type = "list"
default = []
}
variable "cors_expose_headers" {
type = "list"
default = ["ETag"]
}
variable "cors_max_age_seconds" {
default = "3600"
}
variable "forward_cookies" {
default = "none"
}
variable "price_class" {
default = "PriceClass_100"
}
variable "viewer_protocol_policy" {
description = "allow-all, redirect-to-https"
default = "redirect-to-https"
}
variable "allowed_methods" {
type = "list"
default = ["DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT"]
}
variable "cached_methods" {
type = "list"
default = ["GET", "HEAD"]
}
variable "default_ttl" {
default = "60"
}
variable "min_ttl" {
default = "0"
}
variable "max_ttl" {
default = "31536000"
}
variable "geo_restriction_type" {
# e.g. "whitelist"
default = "none"
}
variable "geo_restriction_locations" {
type = "list"
# e.g. ["US", "CA", "GB", "DE"]
default = []
}
variable "parent_zone_id" {
default = ""
}
variable "parent_zone_name" {
default = ""
}
variable "null" {
description = "an empty string"
default = ""
}