Skip to content

Commit 73de128

Browse files
committed
move aws_crt into the bundle
1 parent 1b79bcf commit 73de128

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ build: src/ cloudformation/ docs/
5959
cp -r src/api/resources/ dist/api/resources
6060
rm -rf dist/lambda/sqs
6161
sam build --template-file cloudformation/main.yml
62+
cp -r node_modules/aws-crt/ .aws-sam/build/AppApiLambdaFunction/node_modules
6263

6364
local:
6465
VITE_BUILD_HASH=$(GIT_HASH) yarn run dev

cloudformation/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ Resources:
165165
RunEnvironment: !Ref RunEnvironment
166166
EntraRoleArn: !GetAtt AppSecurityRoles.Outputs.EntraFunctionRoleArn
167167
LinkryKvArn: !GetAtt LinkryRecordsCloudfrontStore.Arn
168+
AWS_CRT_NODEJS_BINARY_RELATIVE_PATH: node_modules/aws-crt/dist/bin/linux-arm64-glibc/aws-crt-nodejs.node
168169
VpcConfig:
169170
Ipv6AllowedForDualStack: !If [ShouldAttachVpc, True, !Ref AWS::NoValue]
170171
SecurityGroupIds:

src/api/package.lambda.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"dependencies": {
1010
"moment-timezone": "^0.5.45",
1111
"passkit-generator": "^3.3.1",
12-
"fastify": "^5.1.0",
13-
"@aws-sdk/signature-v4-crt": "^3.787.0"
12+
"fastify": "^5.1.0"
1413
},
1514
"devDependencies": {}
1615
}

0 commit comments

Comments
 (0)