Skip to content

Commit

Permalink
Allow Restate to invoke handlers via explicit version qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
pcholakov committed Nov 20, 2023
1 parent 1da5f47 commit 8831b6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/restate-constructs/restate-lambda-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 8831b6d

Please sign in to comment.