diff --git a/modules/terminate-agent-hook/main.tf b/modules/terminate-agent-hook/main.tf index 7f5180ae..a3ba627c 100644 --- a/modules/terminate-agent-hook/main.tf +++ b/modules/terminate-agent-hook/main.tf @@ -11,7 +11,7 @@ locals { data "archive_file" "terminate_runner_instances_lambda" { type = "zip" source_file = "${path.module}/lambda/terminate_runners.py" - output_path = "builds/lambda_function_${local.source_sha256}.zip" + output_path = "${path.module}/builds/${var.environment}/${var.name}/terminate-agent-hook_${local.source_sha256}.zip" output_file_mode = "0666" }