diff --git a/github-runners/terraform/autoscaling/gh-runners/ephemeral-linux/main.tf b/github-runners/terraform/autoscaling/gh-runners/ephemeral-linux/main.tf index 4c4ce2f4..8c6ea8c6 100644 --- a/github-runners/terraform/autoscaling/gh-runners/ephemeral-linux/main.tf +++ b/github-runners/terraform/autoscaling/gh-runners/ephemeral-linux/main.tf @@ -44,7 +44,7 @@ module "runners" { enable_ssm_on_runners = true # Let the module manage the service linked role - # create_service_linked_role_spot = true + create_service_linked_role_spot = true instance_types = ["m6a.4xlarge", "c6a.4xlarge"] @@ -60,20 +60,19 @@ module "runners" { enable_ephemeral_runners = true # # Example of simple pool usages - # pool_runner_owner = "subspace-scale-runners" - # pool_config = [{ - # size = 3 - # schedule_expression = "cron(* * * * ? *)" - # }] - # - # + pool_runner_owner = "subspace-scale-runners" + pool_config = [{ + size = 3 + schedule_expression = "cron(* * * * ? *)" + }] + enable_job_queued_check = true - # tracing_config = { - # mode = "Active" - # capture_error = true - # capture_http_requests = true - # } + tracing_config = { + mode = "Active" + capture_error = true + capture_http_requests = true + } # AMI selection and userdata diff --git a/github-runners/terraform/autoscaling/gh-runners/ephemeral-windows/main.tf b/github-runners/terraform/autoscaling/gh-runners/ephemeral-windows/main.tf index b3bcb397..d2805522 100644 --- a/github-runners/terraform/autoscaling/gh-runners/ephemeral-windows/main.tf +++ b/github-runners/terraform/autoscaling/gh-runners/ephemeral-windows/main.tf @@ -44,7 +44,7 @@ module "runners" { enable_ssm_on_runners = true # Let the module manage the service linked role - # create_service_linked_role_spot = true + create_service_linked_role_spot = true instance_types = ["m6a.4xlarge", "c6a.4xlarge"] @@ -60,20 +60,19 @@ module "runners" { enable_ephemeral_runners = true # # Example of simple pool usages - # pool_runner_owner = "subspace-scale-runners" - # pool_config = [{ - # size = 3 - # schedule_expression = "cron(* * * * ? *)" - # }] - # - # + pool_runner_owner = "subspace-scale-runners" + pool_config = [{ + size = 3 + schedule_expression = "cron(* * * * ? *)" + }] + enable_job_queued_check = true - # tracing_config = { - # mode = "Active" - # capture_error = true - # capture_http_requests = true - # } + tracing_config = { + mode = "Active" + capture_error = true + capture_http_requests = true + } # configure your pre-built AMI diff --git a/github-runners/terraform/autoscaling/gh-runners/multi-runner/main.tf b/github-runners/terraform/autoscaling/gh-runners/multi-runner/main.tf index 6b3dfa4f..fc5f6b6f 100644 --- a/github-runners/terraform/autoscaling/gh-runners/multi-runner/main.tf +++ b/github-runners/terraform/autoscaling/gh-runners/multi-runner/main.tf @@ -78,35 +78,35 @@ module "runners" { webhook_secret = random_id.random.hex } # enable this section for tracing - # tracing_config = { - # mode = "Active" - # capture_error = true - # capture_http_requests = true - # } + tracing_config = { + mode = "Active" + capture_error = true + capture_http_requests = true + } # Assuming local build lambda's to use pre build ones, uncomment the lines below and download the - # lambda zip files lambda_download - # webhook_lambda_zip = "../lambdas-download/webhook.zip" - # runner_binaries_syncer_lambda_zip = "../lambdas-download/runner-binaries-syncer.zip" - # runners_lambda_zip = "../lambdas-download/runners.zip" + lambda zip files lambda_download + webhook_lambda_zip = "../lambdas-download/webhook.zip" + runner_binaries_syncer_lambda_zip = "../lambdas-download/runner-binaries-syncer.zip" + runners_lambda_zip = "../lambdas-download/runners.zip" - # enable_workflow_job_events_queue = true + enable_workflow_job_events_queue = true # override delay of events in seconds # Enable debug logging for the lambda functions - # log_level = "debug" + log_level = "debug" # Enable spot termination watcher - # spot_instance_termination_watcher = { - # enable = true - # } + spot_instance_termination_watcher = { + enable = true + } # Enable to track the spot instance termination warning - # instance_termination_watcher = { - # enable = true - # enable_metric = { - # spot_warning = true - # } - # } + instance_termination_watcher = { + enable = true + enable_metric = { + spot_warning = true + } + } } module "webhook_github_app" {