This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
forked from riboseinc/terraform-aws-s3-cloudfront-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
102 lines (85 loc) · 2.17 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
variable "fqdn" {
type = string
description = "The FQDN of the website and also name of the S3 bucket"
}
variable "aliases" {
type = list(string)
description = "Any other domain aliases to add to the CloudFront distribution"
default = []
}
variable "force_destroy" {
type = string
description = "The force_destroy argument of the S3 bucket"
default = "false"
}
variable "ssl_certificate_arn" {
type = string
description = "ARN of the certificate covering the fqdn and its apex?"
}
variable "allowed_ips" {
type = list(string)
description = "A list of IPs that can access the S3 bucket directly"
default = []
}
variable "web_acl_id" {
type = string
description = "WAF Web ACL ID to attach to the CloudFront distribution, optional"
default = ""
}
variable "refer_secret" {
type = string
description = "A secret string to authenticate CF requests to S3"
default = "123-VERY-SECRET-123"
}
variable "routing_rules" {
type = string
description = "Routing rules for the S3 bucket"
default = ""
}
variable "cloudfront_price_class" {
type = string
description = "PriceClass for CloudFront distribution"
default = "PriceClass_100"
}
variable "index_document" {
type = string
description = "HTML to show at root"
default = "index.html"
}
variable "error_document" {
type = string
description = "HTML to show on 404"
default = "404.html"
}
variable "error_response_code" {
type = string
description = "Response code to send on 404"
default = "404"
}
variable "spa_error_response_code" {
type = string
description = "Response code to send on 404 for a single page application"
default = "200"
}
variable "tags" {
type = map(string)
description = "Tags"
default = {}
}
# value should be "${lambda.arn}:${lambda.version}"
variable "lambda_edge_arn_version" {
default = ""
type = string
}
variable "lambda_edge_enabled" {
default = false
type = bool
}
variable "cf_ipv6_enabled" {
default = true
type = bool
}
variable "single_page_application" {
default = false
type = bool
}