Skip to content

Commit

Permalink
feat: Add runner logfiles to output (#2858)
Browse files Browse the repository at this point in the history
* feat: Add runner logfiles to output

* Update modules/multi-runner/outputs.tf

Co-authored-by: Niek Palm <npalm@users.noreply.github.com>

Co-authored-by: Niek Palm <npalm@users.noreply.github.com>
  • Loading branch information
sanketrathi and npalm authored Jan 12, 2023
1 parent 3247f8d commit a1013e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/multi-runner/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ output "runners" {
role_scale_up = runner.role_scale_up
role_scale_down = runner.role_scale_down
role_pool = runner.role_pool
logfiles = runner.logfiles
}]
}

Expand Down
1 change: 1 addition & 0 deletions modules/runners/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ yarn run dist
| <a name="output_lambda_scale_down"></a> [lambda\_scale\_down](#output\_lambda\_scale\_down) | n/a |
| <a name="output_lambda_scale_up"></a> [lambda\_scale\_up](#output\_lambda\_scale\_up) | n/a |
| <a name="output_launch_template"></a> [launch\_template](#output\_launch\_template) | n/a |
| <a name="output_logfiles"></a> [logfiles](#output\_logfiles) | List of logfiles to send to CloudWatch. Object description: `log_group_name`: Name of the log group, `file_path`: path to the log file, `log_stream_name`: name of the log stream. |
| <a name="output_role_pool"></a> [role\_pool](#output\_role\_pool) | n/a |
| <a name="output_role_runner"></a> [role\_runner](#output\_role\_runner) | n/a |
| <a name="output_role_scale_down"></a> [role\_scale\_down](#output\_role\_scale\_down) | n/a |
Expand Down
5 changes: 5 additions & 0 deletions modules/runners/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ output "role_scale_down" {
output "role_pool" {
value = length(var.pool_config) == 0 ? null : module.pool[0].role_pool
}

output "logfiles" {
value = local.logfiles
description = "List of logfiles to send to CloudWatch. Object description: `log_group_name`: Name of the log group, `file_path`: path to the log file, `log_stream_name`: name of the log stream."
}
1 change: 1 addition & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ output "runners" {
role_scale_down = module.runners.role_scale_down
role_pool = module.runners.role_pool
labels = sort(split(",", local.runner_labels))
logfiles = module.runners.logfiles
}
}

Expand Down

0 comments on commit a1013e9

Please sign in to comment.