Skip to content

Commit

Permalink
Merge pull request #96 from FloRul/email-request-pre-processor-as-zip
Browse files Browse the repository at this point in the history
modify
  • Loading branch information
joelbalcaen authored Mar 26, 2024
2 parents 17f5823 + 1412ab0 commit f5761de
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
data "aws_caller_identity" "current" {}

module "lambda_function_container_image" {
timeout = 60
source = "terraform-aws-modules/lambda/aws"
handler = "com.levio.awsdemo.emailrequestpreprocessor.App::handleRequest"
runtime = "java17"
# source = "terraform-aws-modules/lambda/aws"
# function_name = local.lambda_function_name
# handler = "index.lambda_handler"
# publish = true
# runtime = local.runtime
# timeout = local.timeout
# layers = [local.powertools_layer_arn]
# source_path = "${path.module}/src"
# s3_bucket = var.lambda_storage_bucket
# memory_size = 256
# role_name = "${local.lambda_function_name}-role"
# attach_policy_statements = true



source = "terraform-aws-modules/lambda/aws"
handler = "com.levio.awsdemo.emailrequestpreprocessor.App::handleRequest"
publish = true
runtime = "java17"
timeout = 60
function_name = var.lambda_function_name
create_package = false
memory_size = 1024
role_name = "${var.lambda_function_name}-role"
attach_policy_statements = true
s3_bucket = var.lambda_storage_bucket
source_path = "${path.module}/target"
source_path = "${path.module}/target"


environment_variables = {
Expand Down
5 changes: 0 additions & 5 deletions lambdas/email_receipt_confirmation/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,14 @@ data "aws_caller_identity" "current" {}

module "lambda_function_container_image" {
source = "terraform-aws-modules/lambda/aws"

function_name = local.lambda_function_name
handler = "index.lambda_handler"
publish = true

runtime = local.runtime
timeout = local.timeout
layers = [local.powertools_layer_arn]

source_path = "${path.module}/src"
s3_bucket = var.lambda_storage_bucket


memory_size = 256
role_name = "${local.lambda_function_name}-role"
attach_policy_statements = true
Expand Down

0 comments on commit f5761de

Please sign in to comment.