-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
71 lines (60 loc) · 1.91 KB
/
Copy pathvariables.tf
File metadata and controls
71 lines (60 loc) · 1.91 KB
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
variable "aws_region" {
description = "AWS region to deploy into. Lambda + scheduler must share this region/VPC."
type = string
default = "us-west-2"
}
variable "project_name" {
description = "Prefix used for naming all resources."
type = string
default = "dask-lambda"
}
variable "vpc_cidr" {
description = "CIDR block for the VPC that hosts the scheduler and Lambda workers."
type = string
default = "10.60.0.0/16"
}
variable "scheduler_cpu" {
description = "Fargate CPU units for the Dask scheduler task (1024 = 1 vCPU)."
type = number
default = 1024
}
variable "scheduler_memory" {
description = "Fargate memory (MiB) for the Dask scheduler task."
type = number
default = 2048
}
variable "scheduler_image_tag" {
description = "Image tag for the Dask scheduler container in ECR."
type = string
default = "latest"
}
variable "worker_image_tag" {
description = "Image tag for the Lambda worker container in ECR."
type = string
default = "latest"
}
variable "worker_memory" {
description = "Memory (MB) for each Lambda worker. Drives CPU allocation too."
type = number
default = 3008
}
variable "worker_timeout" {
description = "Max seconds a Lambda worker runs before AWS kills it (hard ceiling 900)."
type = number
default = 900
}
variable "worker_lifetime_seconds" {
description = "Soft lifetime passed to `dask worker --lifetime`; must be < worker_timeout so the worker retires gracefully before Lambda kills it."
type = number
default = 840
}
variable "max_workers" {
description = "Upper bound on concurrent Lambda workers the scaling agent may spawn."
type = number
default = 50
}
variable "scaling_interval" {
description = "EventBridge schedule expression driving the scaling agent."
type = string
default = "rate(1 minute)"
}