Skip to content

Commit

Permalink
Merge pull request #107 from FloRul/email-request-pre-processor-as-zip
Browse files Browse the repository at this point in the history
try packaging as zip
  • Loading branch information
joelbalcaen authored Mar 27, 2024
2 parents 3513966 + 08e8b40 commit 539468d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Java 17
uses: actions/setup-java@v4
with:
Expand All @@ -99,6 +99,7 @@ jobs:
- name: Package Java lambdas
run: |
mvn -f ./lambdas/EmailProcessor/EmailRequestPreProcessorFunction package
zip -r ./lambdas/EmailProcessor/EmailRequestPreProcessorFunction/iac/lambda.zip ./lambdas/EmailProcessor/EmailRequestPreProcessorFunction/target/email-request-preprocessor-1.0.jar
deploy-infra:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module "lambda_function_container_image" {
role_name = "${var.lambda_function_name}-role"
attach_policy_statements = true
s3_bucket = var.lambda_storage_bucket
local_existing_package = "${path.module}/../target/email-request-preprocessor-1.0.jar"
local_existing_package = "${path.module}/lambda.zip"
create_package = false

environment_variables = {
Expand Down

0 comments on commit 539468d

Please sign in to comment.