-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
67 lines (60 loc) · 1.82 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
variable "context" {
type = object({
attributes = list(string)
dns_namespace = string
environment = string
instance = string
instance_short = string
namespace = string
region = string
region_short = string
role = string
role_short = string
project = string
tags = map(string)
})
description = "Shared Context from Ben's terraform-null-context"
}
variable "name" {
type = string
default = "site"
description = "The name of the site, used for naming resources and identifiers."
nullable = false
}
variable "s3_kms_key_arn" {
type = string
default = null
description = "The ARN of the KMS key used for S3 server-side encryption."
nullable = true
}
variable "default_root_object" {
type = string
default = "index.html"
description = "The default root object for the S3 bucket, typically used for web hosting."
nullable = true
}
variable "domain_zone_name" {
type = string
description = "If setting a custom CNAME for the Cloudfront distribution this is the domain name for the zone."
nullable = false
}
variable "domain_zone_id" {
type = string
description = "If setting a custom CNAME for the Cloudfront distribution this is the domain name for the zone."
nullable = false
}
variable "extra_domain_prefixes" {
type = list(string)
default = []
description = "Prefixes for additional custom domains to be associated with the CloudFront distribution."
nullable = false
}
variable "function_associations" {
type = set(object({
event_type = string
function_arn = string
}))
default = []
description = "A config block that triggers a lambda function with specific actions (maximum 4)."
nullable = false
}