-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
52 lines (45 loc) · 1.12 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
variable "application" {
type = string
description = "Name of the actual application, e.g. My Bucket website"
nullable = true
default = "My Static Website"
}
variable "bucket_name" {
type = string
description = "Name of the bucket, e.g. my-bucket"
nullable = false
}
variable "certificate_name" {
type = string
description = "ACM certificate name, e.g. example.com"
nullable = false
}
variable "cloudfront_function_name" {
type = string
description = "Name for CloudFront function, e.g. MyFunction"
nullable = false
}
variable "domains" {
type = list(string)
description = <<-DOC
List of domain name aliases for the site, e.g. ["mybucket.com", "my.bucket.com"].
DOC
nullable = false
validation {
condition = length(var.domains) > 0
error_message = "Must add at least one domain name alias"
}
}
variable "primary_domain" {
type = string
description = "Deployed domain name, e.g. www.mybucket.com"
nullable = false
}
locals {
ttl = {
vshort = 60
short = 300
medium = 1800
regular = 86400
}
}