@@ -9,7 +9,7 @@ module "lambda-put-nodes-to-standby" {
9
9
function_name = " ${ var . name } -put-nodes-to-standby"
10
10
description = " A lambda function to put an instance to standby"
11
11
handler = " putNodesToStandby.lambda_handler"
12
- runtime = " python3.8 "
12
+ runtime = var . runtime_python
13
13
timeout = 900
14
14
create_role = false
15
15
source_path = " ${ path . module } /lambdas/putNodesToStandby.py"
@@ -31,7 +31,7 @@ module "lambda-check-for-pods" {
31
31
function_name = " ${ var . name } -check-for-running-pods"
32
32
description = " A lambda function to check for running pods in an instance"
33
33
handler = " checkNodesForRunningPods.handler"
34
- runtime = " python3.8 "
34
+ runtime = var . runtime_python
35
35
timeout = 60
36
36
37
37
source_path = [
@@ -62,7 +62,7 @@ module "lambda-taint-nodes" {
62
62
function_name = " ${ var . name } -taint-nodes"
63
63
description = " A lambda function to ensure no more scheduling on that node"
64
64
handler = " taintNodes.handler"
65
- runtime = " python3.8 "
65
+ runtime = var . runtime_python
66
66
timeout = 60
67
67
68
68
source_path = [
@@ -93,7 +93,7 @@ module "lambda-detach-and-terminate-node" {
93
93
function_name = " ${ var . name } -detachand-terminate-node"
94
94
description = " A lambda function to detach a node from asg and terminate it"
95
95
handler = " detachAndTerminateNode.lambda_handler"
96
- runtime = " python3.8 "
96
+ runtime = var . runtime_python
97
97
timeout = 60
98
98
source_path = " ${ path . module } /lambdas/detachAndTerminateNode.py"
99
99
tags = var. tags
0 commit comments