I’m trying to make sure the function has access to a database on DigitalOcean, and I’m curious where the function runs from? Is the IP address just the external address of a random server it’s running on, or is the server (and IP address) confined more to just my account?
I’m going to assume for now, that it is not a good idea to connect to one of my Databases when using just a function.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey @jacobmaxfield,
Both the App Platform and the serverless functions do not have static IP addresses.
It looks like someone has had the same idea before and has posted it on our Product Ideas board. The best thing to do would be to head over and add your vote to it, as well as adding any additional information in the comments for exactly what you’d like to see implemented:
However, if your serverless function is part of your App you could still use the managed database trusted sources as described here:
https://docs.digitalocean.com/products/app-platform/how-to/manage-databases/
Hope that helps!
- Bobby.