forked from scalefactory/terraform-cloudfront-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
53 lines (43 loc) · 1.27 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
variable "session_duration" {
type = number
default = 1
description = "Session duration in hours"
}
variable "tags" {
type = map(string)
default = {}
description = "Tags to label resources with (e.g map('dev', 'prod'))"
}
variable "region" {
type = string
description = "The region to deploy the S3 bucket into"
}
variable "cloudfront_aliases" {
type = list(string)
default = []
description = "List of FQDNs to be used as alternative domain names (CNAMES) for Cloudfront"
}
variable "cloudfront_price_class" {
type = string
default = "PriceClass_All"
description = "Cloudfront price class; for example: 'PriceClass_All', 'PriceClass_200', 'PriceClass_100'"
validation {
condition = can(regex("^PriceClass_", var.cloudfront_price_class))
error_message = "The cloudfront_price_class value must start with \"PriceClass_\"."
}
}
variable "cloudfront_default_root_object" {
type = string
default = "index.html"
description = "The default root object of the Cloudfront distribution"
}
variable "cloudfront_acm_certificate_arn" {
description = "ACM Certificate ARN for Cloudfront"
default = null
}
variable "name" {
type = string
}
variable "lambda_filename" {
type = string
}