Tuesday, June 25, 2019

[google-cloud-sql-discuss] Re: Unable to connect App Engine Standard version to Cloud SQL Private IP.

Hi Rahul, you might want to opt for App Engine Flex instead as presently App Engine Standard doesn't support Private IP connection for reasons that pertain to a "sandboxed execution environment". As stated in our official documentation [1]: "you cannot use private IP to connect from standard environment."

In the standard environment, this sandbox restricts what your application can do. For example, your application cannot write to disk or use non-whitelisted binary libraries. Your application typically accesses services like Cloud SQL via the built-in google.appengine APIs [2]. 

Read more about the differences and limitations between each execution environments here [3].

[1] Private IP Requirements: https://cloud.google.com/sql/docs/mysql/private-ip#application_environment_requirements
[2] App Engine Standard Restrictions: https://cloud.google.com/appengine/docs/flexible/go/flexible-for-standard-users#accessing_external_services
[3] Comparing GAE Standard and Flexible: https://cloud.google.com/appengine/docs/the-appengine-environments

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/59718fa4-527a-4e7c-a9ae-2241cea71630%40googlegroups.com.

No comments:

Post a Comment