Skip to content

Commit 1b1ae8d

Browse files
authored
Make ServiceDeployer lambda architecture configurable (#50)
1 parent 49b084d commit 1b1ae8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/restate-constructs/service-deployer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export class ServiceDeployer extends Construct {
9696
props?: Pick<
9797
lambda_node.NodejsFunctionProps,
9898
| "allowPublicSubnet"
99+
| "architecture"
99100
| "bundling"
100101
| "code"
101102
| "entry"
@@ -115,7 +116,7 @@ export class ServiceDeployer extends Construct {
115116
logGroup: props?.logGroup,
116117
description: "Restate custom registration handler",
117118
entry: props?.entry ?? path.join(__dirname, "register-service-handler/index.js"),
118-
architecture: lambda.Architecture.ARM_64,
119+
architecture: props?.architecture ?? lambda.Architecture.ARM_64,
119120
runtime: lambda.Runtime.NODEJS_LATEST,
120121
memorySize: 128,
121122
timeout: props?.timeout ?? DEFAULT_TIMEOUT,

0 commit comments

Comments
 (0)