Skip to content

Commit

Permalink
re-tidy v1
Browse files Browse the repository at this point in the history
  • Loading branch information
tajewole-moj committed Oct 18, 2023
1 parent 73638ef commit 0ba836f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions terraform/environments/apex/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ source_file = local.dbsourcefiles
output_path = local.zipfiles
filename = local.zipfiles
function_name = local.functions
handler = [local.local.dbsnaphandler, local.local.deletesnaphandler, local.local.connecthandler]
handler = local.handlers
role = module.iambackup.backuprole
runtime = [ local.nodejsversion, local.local.pythonversion, local.local.nodejsversion ]
runtime = local.runtime



Expand Down
7 changes: 2 additions & 5 deletions terraform/environments/apex/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ locals {
functions = var.function_name

#Handlers
dbsnaphandler= "snapshot/dbsnapshot.handler"
deletesnaphandler= "deletesnapshots.lambda_handler"
connecthandler= "ssh/dbconnect.handler"
handlers = var.handler

#Runtime
nodejsversion= "nodejs18.x"
pythonversion= "python3.8"
runtime = var.runtime



Expand Down
10 changes: 10 additions & 0 deletions terraform/environments/apex/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,14 @@ variable "filename" {
variable "function_name" {
type = list(string)
default = ["snapshotDBFunction","deletesnapshotFunction","connectDBFunction"]
}

variable "handler" {
type = list(string)
default = ["snapshot/dbsnapshot.handler","deletesnapshots.lambda_handler","ssh/dbconnect.handler"]
}

variable "runtime" {
type = list(string)
default = [ "nodejs18.x","python3.8","nodejs18.x"]
}

0 comments on commit 0ba836f

Please sign in to comment.