-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
23 lines (21 loc) · 998 Bytes
/
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
variable "demo_config" {
type = object({
hostname = optional(string, "demo")
layers = map(object({
package_hash = optional(string) # default is a dummy package
runtimes = optional(list(string), ["python3.10"])
}))
functions = map(object({
runtime = optional(string, "python3.10")
handler = optional(string, "%s.handle") # %s is placeholder for the function name
package_hash = optional(string) # default is a dummy package
stable_version = optional(string) # default is the previous version
traffic_shift = optional(number, 0.2) # between 0 and 1 (inclusive)
log_retention = optional(number, 14) # in days
environment = optional(map(string)) # environment variables
used_layers = optional(list(string)) # default is all layers
load_balanced = optional(bool, false)
publish_events = optional(bool, false)
}))
})
}