Using the serverless toolkit (, I'd like to deploy some AWS Lambda functions that are used for internal purposes only (private).

API Gateway events can be set to private requiring a key; however, the endpoint would still be exposed to the public and add overhead of gateway to invocations.

I was hoping to find some invocation event such as RPC.

What event type can I use with serverless to invoke a non-publicly exposed Lambda function during deploys in CodePipeline or manual invocation?

2 Answers

ionut On

Maybe you're looking for a private endpoint in API Gateway?

webish On

Remove the serverless event bindings/configuration for the Lambda function.

The function will deploy without setting up a dependency on another AWS service.