Skip to content

Commit f329b4c

Browse files
authored
Merge branch 'main' into npalm/eventbridge
2 parents f5001db + 3b9bba2 commit f329b4c

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [5.17.2](https://github.com/philips-labs/terraform-aws-github-runner/compare/v5.17.1...v5.17.2) (2024-10-21)
4+
5+
6+
### Bug Fixes
7+
8+
* spot termination watcher output multi runner ([#4194](https://github.com/philips-labs/terraform-aws-github-runner/issues/4194)) ([367b1b3](https://github.com/philips-labs/terraform-aws-github-runner/commit/367b1b38285d63c0cc0fb8a991f69dcbac227222))
9+
310
## [5.17.1](https://github.com/philips-labs/terraform-aws-github-runner/compare/v5.17.0...v5.17.1) (2024-10-17)
411

512

modules/multi-runner/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ module "multi-runner" {
197197
| Name | Description |
198198
|------|-------------|
199199
| <a name="output_binaries_syncer_map"></a> [binaries\_syncer\_map](#output\_binaries\_syncer\_map) | n/a |
200+
| <a name="output_instance_termination_handler"></a> [instance\_termination\_handler](#output\_instance\_termination\_handler) | n/a |
200201
| <a name="output_instance_termination_watcher"></a> [instance\_termination\_watcher](#output\_instance\_termination\_watcher) | n/a |
201202
| <a name="output_queues"></a> [queues](#output\_queues) | SQS queues. |
202203
| <a name="output_runners_map"></a> [runners\_map](#output\_runners\_map) | n/a |

modules/multi-runner/outputs.tf

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,17 @@ output "queues" {
5656
}
5757

5858
output "instance_termination_watcher" {
59-
value = var.instance_termination_watcher.enable ? {
60-
lambda = module.instance_termination_watcher[0].lambda.function
61-
lambda_log_group = module.instance_termination_watcher[0].lambda.log_group
62-
lambda_role = module.instance_termination_watcher[0].lambda.role
59+
value = var.instance_termination_watcher.enable && var.instance_termination_watcher.features.enable_spot_termination_notification_watcher ? {
60+
lambda = module.instance_termination_watcher[0].spot_termination_notification.lambda
61+
lambda_log_group = module.instance_termination_watcher[0].spot_termination_notification.lambda_log_group
62+
lambda_role = module.instance_termination_watcher[0].spot_termination_notification.lambda_role
63+
} : null
64+
}
65+
66+
output "instance_termination_handler" {
67+
value = var.instance_termination_watcher.enable && var.instance_termination_watcher.features.enable_spot_termination_handler ? {
68+
lambda = module.instance_termination_watcher[0].spot_termination_handler.lambda
69+
lambda_log_group = module.instance_termination_watcher[0].spot_termination_handler.lambda_log_group
70+
lambda_role = module.instance_termination_watcher[0].spot_termination_handler.lambda_role
6371
} : null
6472
}

0 commit comments

Comments
 (0)