Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit a1013e9

Browse files
sanketrathinpalm
andauthored
feat: Add runner logfiles to output (#2858)
* feat: Add runner logfiles to output * Update modules/multi-runner/outputs.tf Co-authored-by: Niek Palm <[email protected]> Co-authored-by: Niek Palm <[email protected]>
1 parent 3247f8d commit a1013e9

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

Diff for: modules/multi-runner/outputs.tf

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ output "runners" {
1010
role_scale_up = runner.role_scale_up
1111
role_scale_down = runner.role_scale_down
1212
role_pool = runner.role_pool
13+
logfiles = runner.logfiles
1314
}]
1415
}
1516

Diff for: modules/runners/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ yarn run dist
207207
| <a name="output_lambda_scale_down"></a> [lambda\_scale\_down](#output\_lambda\_scale\_down) | n/a |
208208
| <a name="output_lambda_scale_up"></a> [lambda\_scale\_up](#output\_lambda\_scale\_up) | n/a |
209209
| <a name="output_launch_template"></a> [launch\_template](#output\_launch\_template) | n/a |
210+
| <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. |
210211
| <a name="output_role_pool"></a> [role\_pool](#output\_role\_pool) | n/a |
211212
| <a name="output_role_runner"></a> [role\_runner](#output\_role\_runner) | n/a |
212213
| <a name="output_role_scale_down"></a> [role\_scale\_down](#output\_role\_scale\_down) | n/a |

Diff for: modules/runners/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ output "role_scale_down" {
2525
output "role_pool" {
2626
value = length(var.pool_config) == 0 ? null : module.pool[0].role_pool
2727
}
28+
29+
output "logfiles" {
30+
value = local.logfiles
31+
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."
32+
}

Diff for: outputs.tf

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ output "runners" {
1111
role_scale_down = module.runners.role_scale_down
1212
role_pool = module.runners.role_pool
1313
labels = sort(split(",", local.runner_labels))
14+
logfiles = module.runners.logfiles
1415
}
1516
}
1617

0 commit comments

Comments
 (0)