forked from philips-labs/terraform-aws-github-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
55 lines (50 loc) · 2.22 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
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}"
}
}
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
webhook_workflow_job_queue = try(aws_sqs_queue.webhook_events_workflow_job_queue[*].arn, "")
}
}