App Platform Environment Variable for Database Private network
complete
Sharmita Das
updated the status to
complete
Dan Brian
Hi Mag Jiraboondilok, thanks for reaching out. We currently don't offer this because App Platform doesn't have VPC support. Only resources in the same VPC network can connect to a private connection. Since apps cannot currently reside in the same private network as their database, we do not want to give customers the impression that they can connect their app to the database's private connection. This will change when we add VPC support to App Platform. Thanks again!
Gulyás Bendeguz
Dan Brian
Hi!
I saw that there is VPC support now in App Platform!
On this documentation site I'm able to see that
DATABASE_PRIVATE_URL
is capable of internal networking. when App Platform App and Database are on the same VPC. But what about HOSTNAME
variable? If there is a VPC connection set up, will it resolve internally? It's not clear from the documentation. Changing all of my connection code to have this envvar dependency only in VPC situations seems a bit risky to me.Could you provide further info about this topic?
Thanks for the update in advance!
Best Regards,
Bendeguz Gulyas