我按照这个示例从云函数连接到Postgres:。
当我使用Public创建测试Cloud实例并触发云函数时,它将连接到cloud实例并返回一些内容。出于安全原因,我不能继续使用公共IP,所以当我在云SQL实例上选择私有IP时,我得到:
Error: function crashed. Details:
could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/cloudsql
我有一个云函数(fce_a),我需要从同一个GCP项目和区域中的另一个云函数(fce_b)调用它。当我将fce_a设置为Allow all traffic (在Ingress settings中)时,它可以完美地工作(使用this method)。但是,当我将fce_a设置为Allow internal traffic only (在Ingress settings中)时,我得到的是Error 403 (Forbidden) 403. That's an error. Access is forbidden. That's all we know. (提到的here)。 我尝