diff --git a/lambda.tf b/lambda.tf index 80c2ef0..3e22d0d 100644 --- a/lambda.tf +++ b/lambda.tf @@ -8,7 +8,7 @@ module "start_export_task_lambda" { function_name = "${local.prefix}rds-export-to-s3${local.postfix}" description = "RDS Export To S3" handler = "index.handler" - runtime = "python3.8" + runtime = "python${var.python_runtime_version}" publish = true cloudwatch_logs_retention_in_days = 90 @@ -40,7 +40,7 @@ module "monitor_export_task_lambda" { function_name = "${local.prefix}rds-export-to-s3-monitor${local.postfix}" description = "RDS Export To S3 Monitor" handler = "index.handler" - runtime = "python3.8" + runtime = "python${var.python_runtime_version}" publish = true cloudwatch_logs_retention_in_days = 90 diff --git a/variables.tf b/variables.tf index c549e9f..1d3c881 100644 --- a/variables.tf +++ b/variables.tf @@ -80,6 +80,12 @@ variable "log_level" { default = "INFO" } +variable "python_runtime_version" { + description = "Runtime Version of Python to use." + type = string + default = "3.8" +} + variable "tags" { description = "(Optional) A mapping of tags to assign to the bucket." type = map(string)