Can we use HTTP API for private APIs? Like I don’t...
# sst
a
Can we use HTTP API for private APIs? Like I don’t want to expose my APIs to the world, due is going to be called internally by other services.
f
Hey @Adrián Mouly, I don’t think it’s possible.
a
😞
f
Private APIs are supported by REST API only.
a
Yeah.
I will need to use that.
I have some internal APIs.
What do you recommend?
f
hmm.. I don’t have too much experience with it.. I’d imagine using IAM authorization would be the most secured way to protect it if you want to go with HTTP API
a
Ok. makes sense.
a
@Frank HTTP APIs have an integration available to use private vpcs. I think it's called private integration. It was documented on the same page where the http proxy integration was. I think that could work for this use case.
f
@Ashishkumar Pandey yeah I was looking at that too, and that seems to be used for HTTP Api to proxy a request to something in your VPC (ie. ALB, EC2, etc). But the Api itself is still public visible.
a
Ah! Understood, that wouldn’t work, this would need a private API Gateway. I think this could probably be achieved using IAM and a private ALB.
a
😩