Skip to content

Commit 6345ec2

Browse files
authored
fix: Tag event rules, fix broken runner hook examples (#4378)
Closes: #4377 Resolves: #4333 (comment)
1 parent a71f1d8 commit 6345ec2

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

examples/multi-runner/templates/runner-configs/linux-arm64.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ runner_config:
1919
delay_webhook_event: 0
2020
scale_down_schedule_expression: cron(* * * * ? *)
2121
runner_hook_job_started: |
22-
echo "Running pre job hook as \$(whoami)"
22+
echo "Running pre job hook as $(whoami)"
2323
runner_hook_job_completed: |
24-
echo "Running post job hook as \$(whoami)"
24+
echo "Running post job hook as $(whoami)"

modules/termination-watcher/notification/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module "termination_warning_watcher" {
1919
resource "aws_cloudwatch_event_rule" "spot_instance_termination_warning" {
2020
name = "${var.config.prefix != null ? format("%s-", var.config.prefix) : ""}spot-notify"
2121
description = "Spot Instance Termination Warning"
22+
tags = local.config.tags
2223

2324
event_pattern = <<EOF
2425
{

modules/termination-watcher/termination/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module "termination_handler" {
1919
resource "aws_cloudwatch_event_rule" "spot_instance_termination" {
2020
name = "${var.config.prefix != null ? format("%s-", var.config.prefix) : ""}spot-termination"
2121
description = "Spot Instance Termination (BidEventicedEvent)"
22+
tags = local.config.tags
2223

2324
event_pattern = <<EOF
2425
{

modules/webhook/eventbridge/dispatcher.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
resource "aws_cloudwatch_event_rule" "workflow_job" {
22
name = "${var.config.prefix}-workflow_job"
3-
description = "Workflow job event ruule for job queued."
3+
description = "Workflow job event rule for job queued."
44
event_bus_name = aws_cloudwatch_event_bus.main.name
5+
tags = var.config.tags
56

67
event_pattern = <<EOF
78
{

0 commit comments

Comments
 (0)