JavaScript/TypeScript library for making AWS Lambda to Lambda calls using openapi-client-axios. Current stable version is 1.4.0, active development. Provides a 'getLambdaRunner' function that wraps the AWS Lambda client to enable direct microservice-to-microservice invocations via OpenAPI operations, eliminating the need for API Gateway. Key differentiator: integrates with openapi-client-axios for type-safe API calls, supports IAM for permission management, and uses AWS SDK v3 for smaller bundle size. Requires Node.js >= 12.
npm install openapi-lambda-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize openapi-client-axios with an OpenAPI definition and register a Lambda runner to make direct Lambda-to-Lambda calls.
Upgrade to v1.4.0 and use AWS SDK v3 (e.g., @aws-sdk/client-lambda).
Add LambdaInvokePolicy to the Lambda execution role, e.g., using SAM template: Policies: - LambdaInvokePolicy: FunctionName: target-lambda-name
Ensure the target function name matches exactly, including case, and that both functions are in the same account/region.
Call api.initSync() before client.api.registerRunner().
Run 'npm install openapi-lambda-adapter' and ensure it's in package.json dependencies.
Use 'import { getLambdaRunner } from 'openapi-lambda-adapter'' instead of 'import getLambdaRunner from ...'Add IAM policy allowing lambda:InvokeFunction on the target Lambda ARN.