-
Notifications
You must be signed in to change notification settings - Fork 627
/
outputs.tf
73 lines (66 loc) · 3.29 KB
/
outputs.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
68
69
70
71
72
73
output "runners" {
value = {
launch_template_name = module.runners.launch_template.name
launch_template_id = module.runners.launch_template.id
launch_template_version = module.runners.launch_template.latest_version
launch_template_ami_id = module.runners.launch_template.image_id
lambda_up = module.runners.lambda_scale_up
lambda_up_log_group = module.runners.lambda_scale_up_log_group
lambda_down = module.runners.lambda_scale_down
lambda_down_log_group = module.runners.lambda_scale_down_log_group
lambda_pool = module.runners.lambda_pool
lambda_pool_log_group = module.runners.lambda_pool_log_group
role_runner = module.runners.role_runner
role_scale_up = module.runners.role_scale_up
role_scale_down = module.runners.role_scale_down
role_pool = module.runners.role_pool
runners_log_groups = module.runners.runners_log_groups
labels = local.runner_labels
logfiles = module.runners.logfiles
}
}
output "binaries_syncer" {
value = var.enable_runner_binaries_syncer ? {
lambda = module.runner_binaries[0].lambda
lambda_log_group = module.runner_binaries[0].lambda_log_group
lambda_role = module.runner_binaries[0].lambda_role
location = "s3://${module.runner_binaries[0].bucket.id}/module.runner_binaries[0].bucket.key"
bucket = module.runner_binaries[0].bucket
} : null
}
output "webhook" {
value = {
gateway = module.webhook.gateway
lambda = module.webhook.lambda
lambda_log_group = module.webhook.lambda_log_group
lambda_role = module.webhook.role
endpoint = "${module.webhook.gateway.api_endpoint}/${module.webhook.endpoint_relative_path}"
webhook = module.webhook.webhook
dispatcher = var.eventbridge.enable ? module.webhook.dispatcher : null
eventbridge = var.eventbridge.enable ? module.webhook.eventbridge : null
}
}
output "ssm_parameters" {
value = module.ssm.parameters
}
output "queues" {
description = "SQS queues."
value = {
build_queue_arn = aws_sqs_queue.queued_builds.arn
build_queue_dlq_arn = var.redrive_build_queue.enabled ? aws_sqs_queue.queued_builds_dlq[0].arn : null
}
}
output "instance_termination_watcher" {
value = var.instance_termination_watcher.enable && var.instance_termination_watcher.features.enable_spot_termination_notification_watcher ? {
lambda = module.instance_termination_watcher[0].spot_termination_notification.lambda
lambda_log_group = module.instance_termination_watcher[0].spot_termination_notification.lambda_log_group
lambda_role = module.instance_termination_watcher[0].spot_termination_notification.lambda_role
} : null
}
output "instance_termination_handler" {
value = var.instance_termination_watcher.enable && var.instance_termination_watcher.features.enable_spot_termination_handler ? {
lambda = module.instance_termination_watcher[0].spot_termination_handler.lambda
lambda_log_group = module.instance_termination_watcher[0].spot_termination_handler.lambda_log_group
lambda_role = module.instance_termination_watcher[0].spot_termination_handler.lambda_role
} : null
}