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

Commit 2f683da

Browse files
feat: added outputs for runner log groups. (#3044)
* feat: Added outputs for runner log groups. * fix: added the description. * fix: formatting. --------- Co-authored-by: navdeepg2021 <[email protected]>
1 parent c4ab242 commit 2f683da

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ output "runners" {
1414
role_scale_up = runner.role_scale_up
1515
role_scale_down = runner.role_scale_down
1616
role_pool = runner.role_pool
17+
runners_log_groups = runner.runners_log_groups
1718
logfiles = runner.logfiles
1819
}]
1920
}

Diff for: modules/runners/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ output "role_pool" {
4242
value = try(module.pool[0].role_pool, null)
4343
}
4444

45+
output "runners_log_groups" {
46+
description = "List of log groups from different log files of runner machine."
47+
value = try(aws_cloudwatch_log_group.gh_runners, [])
48+
}
49+
4550
output "logfiles" {
4651
value = local.logfiles
4752
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."

Diff for: outputs.tf

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ output "runners" {
1414
role_scale_up = module.runners.role_scale_up
1515
role_scale_down = module.runners.role_scale_down
1616
role_pool = module.runners.role_pool
17+
runners_log_groups = module.runners.runners_log_groups
1718
labels = sort(split(",", local.runner_labels))
1819
logfiles = module.runners.logfiles
1920
}

0 commit comments

Comments
 (0)