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
I want to call this api with supabase edge function btw
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.
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
Run tailscale/wireguard
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
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.
So I would need to make a Docker for this?
Well at least some way to setup software for the runtime.