Skip to content

Commit 8385f21

Browse files
committed
CCM-8574: move layer code to lambdas dir
1 parent be2c45e commit 8385f21

File tree

7 files changed

+88
-88
lines changed

7 files changed

+88
-88
lines changed

infrastructure/terraform/components/app/pre.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ npm ci
44

55
npm run generate-dependencies --workspaces --if-present
66

7-
$root_dir/layers/pdfjs/package.sh
7+
$root_dir/lambdas/layers/pdfjs/package.sh

infrastructure/terraform/components/sandbox/pre.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ if [ -z "$SKIP_SANDBOX_INSTALL" ]; then npm ci; fi
44

55
npm run generate-dependencies --workspaces --if-present
66

7-
$root_dir/layers/pdfjs/package.sh
7+
$root_dir/lambdas/layers/pdfjs/package.sh

infrastructure/terraform/modules/backend-api/locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ locals {
33

44
monorepo_root = abspath("${path.module}/../../../..")
55
lambdas_source_code_dir = abspath("${local.monorepo_root}/lambdas")
6-
pdfjs_layer_filepath = abspath("${local.monorepo_root}/layers/pdfjs/dist/layer.zip")
6+
pdfjs_layer_filepath = abspath("${local.lambdas_source_code_dir}/layers/pdfjs/dist/layer.zip")
77

88
openapi_spec = templatefile("${path.module}/spec.tmpl.json", {
99
AWS_REGION = var.region
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To use with a Lambda make sure you exclude `pdfjs-dist` from the bundled code.
1010

1111
Gets packaged using `package.sh` which is invoked in the Terraform `pre.sh` script.
1212

13-
This creates a zip archive at `dist/layer.zip` which is deployed via Terraform - [lambda_layer_version_pdfjs.tf](../../infrastructure/terraform/modules/backend-api/lambda_layer_version_pdfjs.tf)
13+
This creates a zip archive at `dist/layer.zip` which is deployed via Terraform - [lambda_layer_version_pdfjs.tf](../../../infrastructure/terraform/modules/backend-api/lambda_layer_version_pdfjs.tf)
1414

1515
## Caveats
1616

Lines changed: 77 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "nhs-notify-web-template-management-lambda-layer-pdfjs",
3-
"private": "true",
4-
"version": "5.1.91",
5-
"main": "index.ts",
62
"dependencies": {
7-
"pdfjs-dist": "5.1.91",
83
"@napi-rs/canvas": "0.1.67",
9-
"@napi-rs/canvas-linux-x64-gnu": "0.1.67"
10-
}
4+
"@napi-rs/canvas-linux-x64-gnu": "0.1.67",
5+
"pdfjs-dist": "5.1.91"
6+
},
7+
"main": "index.ts",
8+
"name": "nhs-notify-web-template-management-lambda-layer-pdfjs",
9+
"private": "true",
10+
"version": "5.1.91"
1111
}

0 commit comments

Comments
 (0)