Skip to content

Commit 3921f8d

Browse files
author
Eric Cornwell
committed
Fixed source file path mapping in deployment
1 parent 40b1884 commit 3921f8d

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

deployment/cdk/stacks/infra_stack.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __init__(
111111
runtime=lambda_.Runtime.PYTHON_3_12,
112112
code_path=os.path.join(
113113
self.current_path,
114-
"../../../backend/lambda/workflow_complete"),
114+
"../../../source/lambda/workflow_complete"),
115115
main_function="lambda_handler",
116116
timeout=Duration.seconds(30),
117117
memory=128,
@@ -136,7 +136,7 @@ def __init__(
136136
env=env,
137137
runtime=lambda_.Runtime.PYTHON_3_12,
138138
code_path=os.path.join(self.current_path,
139-
"../../../backend/lambda/workflow_trigger"),
139+
"../../../source/lambda/workflow_trigger"),
140140
main_function="lambda_handler",
141141
timeout=Duration.seconds(30),
142142
memory=128,
@@ -198,7 +198,7 @@ def __init__(
198198
env=env,
199199
state_machine_name=self.state_machine_name,
200200
asl_code_path=os.path.join(self.current_path,
201-
"../../../backend/state-machines/ASLdefinition.json"),
201+
"../../../source/state-machines/ASLdefinition.json"),
202202
workflow_trigger_lambda_arn=lambda_workflow_trigger.lambda_function.function_arn,
203203
workflow_complete_lambda_arn=lambda_workflow_complete.lambda_function.function_arn,
204204
ecr_repo_name=self.ecr_repo_name,

deployment/terraform/modules/infra/lambda.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
# Generate Archive Files for Lambda Code
66
data "archive_file" "archive_lambda_job_trigger" {
77
type = "zip"
8-
source_dir = "${path.module}/../../../../backend/lambda/workflow_trigger"
9-
output_path = "${path.module}/../../../../backend/lambda/workflow_trigger/workflow_trigger.zip"
8+
source_dir = "${path.module}/../../../../source/lambda/workflow_trigger"
9+
output_path = "${path.module}/../../../../source/lambda/workflow_trigger/workflow_trigger.zip"
1010
}
1111

1212
data "archive_file" "archive_lambda_job_complete" {
1313
type = "zip"
14-
source_dir = "${path.module}/../../../../backend/lambda/workflow_complete"
15-
output_path = "${path.module}/../../../../backend/lambda/workflow_complete/workflow_complete.zip"
14+
source_dir = "${path.module}/../../../../source/lambda/workflow_complete"
15+
output_path = "${path.module}/../../../../source/lambda/workflow_complete/workflow_complete.zip"
1616
}
1717

1818
# "workflowTrigger" Lambda Function
@@ -22,7 +22,7 @@ resource "aws_lambda_function" "lambda_workflow_trigger" {
2222
timeout = 300
2323
role = aws_iam_role.lambda_role.arn
2424
handler = "workflow_trigger.lambda_handler"
25-
filename = "${path.module}/../../../../backend/lambda/workflow_trigger/workflow_trigger.zip"
25+
filename = "${path.module}/../../../../source/lambda/workflow_trigger/workflow_trigger.zip"
2626
reserved_concurrent_executions = 100
2727

2828
# Enable X-Ray tracing
@@ -50,7 +50,7 @@ resource "aws_lambda_function" "lambda_workflow_complete" {
5050
timeout = 300
5151
role = aws_iam_role.lambda_role.arn
5252
handler = "workflow_complete.lambda_handler"
53-
filename = "${path.module}/../../../../backend/lambda/workflow_complete/workflow_complete.zip"
53+
filename = "${path.module}/../../../../source/lambda/workflow_complete/workflow_complete.zip"
5454
reserved_concurrent_executions = 100
5555

5656
# Enable X-Ray tracing

deployment/terraform/modules/infra/stepfunction.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ resource "aws_cloudwatch_log_group" "step_functions_log_group" {
1212
resource "aws_sfn_state_machine" "sfn_state_machine" {
1313
name = "${var.project_prefix}-state-machine-${var.tf_random_suffix}"
1414
role_arn = aws_iam_role.step_functions_role.arn
15-
definition = templatefile("${path.module}/../../../../backend/state-machines/ASLdefinition.json", {})
15+
definition = templatefile("${path.module}/../../../../source/state-machines/ASLdefinition.json", {})
1616
logging_configuration {
1717
include_execution_data = true
1818
level = "ALL"

deployment/terraform/modules/post_deployment/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ resource "null_resource" "docker_packaging" {
5353
}
5454

5555
provisioner "local-exec" {
56-
command = "docker build -t ${local.repo_name}:latest -f ${path.root}/../../backend/container/Dockerfile ${path.root}/../../backend/container/"
56+
command = "docker build -t ${local.repo_name}:latest -f ${path.root}/../../source/container/Dockerfile ${path.root}/../../source/container/"
5757
}
5858

5959
provisioner "local-exec" {
@@ -115,8 +115,8 @@ resource "aws_iam_role_policy" "lambda_s3_access" {
115115
# Zip the Lambda code
116116
data "archive_file" "lambda_zip" {
117117
type = "zip"
118-
source_dir = "${path.module}/../../../../backend/lambda/model_deployment/"
119-
output_path = "${path.module}/../../../../backend/lambda/model_deployment/model_deployment.zip"
118+
source_dir = "${path.module}/../../../../source/lambda/model_deployment/"
119+
output_path = "${path.module}/../../../../source/lambda/model_deployment/model_deployment.zip"
120120
}
121121

122122
# Create Lambda function for model deployment

0 commit comments

Comments
 (0)