Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add more outputs to multi runners module. #3343

Merged
merged 5 commits into from
Jul 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions modules/multi-runner/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
output "runners" {
description = "(Deprecated, no longer used), see runners_map."
value = [for runner in module.runners : {
launch_template_name = runner.launch_template.name
launch_template_id = runner.launch_template.id
Expand All @@ -18,8 +19,30 @@ output "runners" {
logfiles = runner.logfiles
}]
}
output "runners_map" {
value = { for runner_key, runner in module.runners : runner_key => {
npalm marked this conversation as resolved.
Show resolved Hide resolved
launch_template_name = runner.launch_template.name
launch_template_id = runner.launch_template.id
launch_template_version = runner.launch_template.latest_version
launch_template_ami_id = runner.launch_template.image_id
lambda_up = runner.lambda_scale_up
lambda_up_log_group = runner.lambda_scale_up_log_group
lambda_down = runner.lambda_scale_down
lambda_down_log_group = runner.lambda_scale_down_log_group
lambda_pool = runner.lambda_pool
lambda_pool_log_group = runner.lambda_pool_log_group
role_runner = runner.role_runner
role_scale_up = runner.role_scale_up
role_scale_down = runner.role_scale_down
role_pool = runner.role_pool
runners_log_groups = runner.runners_log_groups
logfiles = runner.logfiles
}
}
}

output "binaries_syncer" {
description = "(Deprecated, no longer used), see binaries_syncer_map."
value = [for runner_binary in module.runner_binaries : {
lambda = runner_binary.lambda
lambda_log_group = runner_binary.lambda_log_group
Expand All @@ -29,6 +52,16 @@ output "binaries_syncer" {
}]
}

output "binaries_syncer_map" {
value = { for runner_binary_key, runner_binary in module.runner_binaries : runner_binary_key => {
lambda = runner_binary.lambda
lambda_log_group = runner_binary.lambda_log_group
lambda_role = runner_binary.lambda_role
location = "s3://runner_binary.bucket.id}/runner_binary.bucket.key"
bucket = runner_binary.bucket
} }
}

output "webhook" {
value = {
gateway = module.webhook.gateway
Expand Down