Private and public api gateway in one serverless file

Hi,

Goal: I’m trying to make a http lambda endpoint only accessible by other lambdas within the same VPC and not publicly accessible.

I thought I could deploy the endpoint in a separate private api gateway instance but it seems that you can’t specify an api gateway reference for each http function, only at a service level. In the same serverless file, I also have many other http functions that need to be publicly accessible so I’m not able to make the entire service deployed to the private api gateway instance.

I was hoping some http functions could be deployed to the public api gateway and others to the private api gateway within the same serverless file.

What is the best way with the serverless framework to solve this?

Thanks

Hi @rossboseman!
Do you solved your question? I have the same goal here.
Thanks