Static ip(s) for edge function

I am working with an API that basically only works with certain whitelisted IPs that I can set. Is there a way for the function to only be a set of static IP addresses?
8 Replies
vspuzzler
vspuzzlerOP4w ago
I want to call this api with supabase edge function btw
garyaustin
garyaustin4w ago
No such ability exists. I've seen adding an API gateway in front of the edge function as a possible work around in github discussions.
vspuzzler
vspuzzlerOP4w ago
Is there gateway you recommend I use? I tried using AWS but it is very expensive when I am just make like 10-15 calls every month
Kapxy
Kapxy3w ago
Run tailscale/wireguard
vspuzzler
vspuzzlerOP3w ago
Would I be able to use this like an AWS Lambda function? I am currently using a lambda function, so I hope it works the same way Because right now I have it deployed on AWS Lambda with a VPC but that is very expseive considering I am just have around 1-2 requests every day
Kapxy
Kapxy3w ago
Yes ive run tailscale on lambda. Its a bit more complicated on Lambda though. https://tailscale.com/kb/1113/aws-lambda Depending on the selected lambda runtime (e.g. nodejs) there might be clash with the bootstrap file in the docs so you might have to play around it
Tailscale
Tailscale on AWS Lambda · Tailscale Docs
Learn how to run Tailscale on AWS Lambda functions.
vspuzzler
vspuzzlerOP3w ago
So I would need to make a Docker for this?
Kapxy
Kapxy3w ago
Well at least some way to setup software for the runtime.

Did you find this page helpful?