-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
156 lines (126 loc) · 3.42 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
# AWS
variable "domain_name" {
description = "The domain name for the website."
type = string
}
variable "hostname" {
description = "hostname for website without domain"
type = string
}
# COMMON
variable "module_enabled" {
description = "Whether to create resources within the module or not. Default is true."
type = bool
default = true
}
variable "module_depends_on" {
description = "List of resources which module depends on"
type = list(string)
default = []
}
## S3
variable "s3_index_document" {
description = "File in bucket which should be index page"
type = string
default = "index.html"
}
variable "s3_acl" {
description = "ACL for bucket. Possible values: private, public-read, public-read-write, aws-exec-read, authenticated-read, and log-delivery-write"
type = string
default = "public-read"
}
variable "s3_upload_files_path" {
description = "Path to the folder with files for uploading to the s3 bucket"
type = string
}
variable "s3_versioning" {
description = "Whether to enable versioning on S3 or not. Default is true"
type = bool
default = true
}
## CloudFront
variable "cf_enabled" {
description = "Whether if cf is enabled"
type = bool
default = true
}
variable "cf_is_ipv6_enabled" {
description = "Whether if ipv6 is enabled"
type = bool
default = true
}
variable "cf_http_version" {
description = "HTTP version for cf"
type = string
default = "http2"
}
### Default cache
variable "cf_cache_allowed" {
description = "Allowed methods"
type = list(string)
default = ["GET", "HEAD", "OPTIONS"]
}
variable "cf_cached_methods" {
description = "Methods for caching"
type = list(string)
default = ["GET", "HEAD"]
}
variable "cf_viewer_protocol_policy" {
description = "CloudFront viewer protocol policy"
type = string
default = "redirect-to-https"
}
variable "cf_compress" {
description = "Do you want to enable compression"
type = bool
default = true
}
variable "cf_min_ttl" {
description = "Min ttl for caching"
type = number
default = 0
}
variable "cf_default_ttl" {
description = "Default ttl for caching"
type = number
default = 3600
}
variable "cf_max_ttl" {
description = "Max ttl for caching"
type = number
default = 86400
}
variable "cf_web_acl_id" {
description = "WEB ACL ID if we want WAF on CF"
type = string
default = null
}
### Restrictions
variable "cf_geo_restrictions" {
description = "Map for restriction"
type = any
default = {}
}
### logging
variable "cf_logging" {
description = "Map for restriction. You can define key bucket and set bucket name for logging, key include_cookies in order to include cookies in logs (default is false), and key prefix for prefix for storing logs in bucket (default is '/')"
type = any
default = {}
}
## Certificate
variable "cf_minimum_protocol_version" {
description = "Minimum protocol version for SSL"
type = string
default = "TLSv1.2_2019"
}
variable "cf_ssl_support_method" {
description = "SSL support method for CloudFront"
type = string
default = "sni-only"
}
# CloudFront Origin
variable "cf_origin_access_identity_comment" {
description = "Comment for CloudFront Identity"
type = string
default = ""
}