How to allow outbound requests from a Google Cloud Run to external MySql instance

1

I've created a google cloud run service, acting as an api which needs to connect to a mysql instance correctly hosted in aws rds. I can see that the google cloud run container is unable to connect to the mysql server instance.

My suspicion is that outbound connections are blocked from the google cloud run container.

Hence my question is if anyone knows how to allow/configure outbound requests in gcloud.

I can run the container locally and connect to AWS RDS successfully. On Cloud Run I get this error:

MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

google-cloud-run
asked on Stack Overflow Jul 28, 2019 by lancearmstruong • edited Jul 31, 2019 by AhmetB - Google

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0