Skip to content

Commit b4ddca9

Browse files
committed
CCM-7525: build client code too
1 parent 705b5db commit b4ddca9

File tree

6 files changed

+10
-104
lines changed

6 files changed

+10
-104
lines changed

infrastructure/terraform/modules/templates-api/module_build_template_lambda.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ module "build_template_lambda" {
44
source_code_dir = "${local.lambdas_source_code_dir}/backend-api"
55
entrypoint = "src/index.ts"
66
}
7+
8+
module "build_template_client" {
9+
source = "../typescript-build-zip"
10+
11+
source_code_dir = "${local.lambdas_source_code_dir}/backend-client"
12+
entrypoint = "src/index.ts"
13+
}

infrastructure/terraform/modules/templates-api/module_create_template_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "create_template_lambda" {
2-
depends_on = [module.build_template_lambda]
2+
depends_on = [module.build_template_lambda, module.build_template_client]
33

44
source = "../lambda-function"
55
description = "Create template API endpoint"

infrastructure/terraform/modules/templates-api/module_get_template_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "get_template_lambda" {
2-
depends_on = [module.build_template_lambda]
2+
depends_on = [module.build_template_lambda, module.build_template_client]
33

44
source = "../lambda-function"
55
description = "Get template API endpoint"

infrastructure/terraform/modules/templates-api/module_update_template_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "update_template_lambda" {
2-
depends_on = [module.build_template_lambda]
2+
depends_on = [module.build_template_lambda, module.build_template_client]
33

44
source = "../lambda-function"
55
description = "Update template API endpoint"

lambdas/backend-api/package-lock.json

Lines changed: 0 additions & 100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lambdas/backend-api/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"dependencies": {
1111
"@aws-sdk/client-dynamodb": "^3.696.0",
1212
"@aws-sdk/lib-dynamodb": "^3.698.0",
13-
"axios": "^1.7.8",
1413
"esbuild": "^0.24.0",
1514
"jsonwebtoken": "^9.0.2",
1615
"nhs-notify-backend-client": "file:../backend-client",

0 commit comments

Comments
 (0)