Skip to content

Commit

Permalink
adds runtime version optional argument to support bumping to later ve…
Browse files Browse the repository at this point in the history
…rsions of compatible python (eg, 3.10 is available) (#17)

Co-authored-by: Steve Stevens <[email protected]>
  • Loading branch information
OurFriendIrony and rs-steve-stevens authored Jan 24, 2024
1 parent fe20b02 commit c066a28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c066a28

Please sign in to comment.