From ed4005b6daf55ac4838db5c035f08568ba06157b Mon Sep 17 00:00:00 2001 From: Pavel Tcholakov Date: Mon, 20 Nov 2023 15:10:07 +0200 Subject: [PATCH] Allow Restate to invoke handlers via explicit version qualifier --- lib/restate-constructs/restate-lambda-services.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/restate-constructs/restate-lambda-services.ts b/lib/restate-constructs/restate-lambda-services.ts index 5d228c2..f93a22c 100644 --- a/lib/restate-constructs/restate-lambda-services.ts +++ b/lib/restate-constructs/restate-lambda-services.ts @@ -43,6 +43,7 @@ export class RestateLambdaServiceCollection extends Construct { handler: lambda.Function }) { service.handler.grantInvoke(restate.instanceRole); + service.handler.currentVersion.grantInvoke(restate.instanceRole); // Allow explicit version invocation const serviceHttpResource = restate.serviceApi.root.addResource(service.path); serviceHttpResource.addProxy({