-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpool_worker.tf
More file actions
40 lines (29 loc) · 841 Bytes
/
pool_worker.tf
File metadata and controls
40 lines (29 loc) · 841 Bytes
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
module "worker" {
source = "resinstack/resinstack/aws//modules/machine-pool"
version = "0.2.2"
ami = var.worker_cfg.ami
key_name = var.ssh_key_name
machine_size = var.worker_cfg.size
machine_count_min = var.worker_cfg.min
machine_count_max = var.worker_cfg.max
pool_name = "${var.cluster_tag}-boundary-worker"
block_devices = {
"/dev/xvda" = 8
"/dev/xvdb" = 50
}
instance_profile = aws_iam_instance_profile.worker.name
security_groups = [
var.common_sg,
aws_security_group.worker.id,
]
associate_public_address = true
vpc_subnets = var.public_subnets
lb_target_groups = [
aws_lb_target_group.worker_proxy.arn,
]
user_data = var.worker_cfg.userdata
cluster_tag = var.cluster_tag
instance_tags = {
"boundary:hostset" = "${var.cluster_tag}-boundary-worker"
}
}