云函数调用外部关系型数据库如何添加IP白名单

小程序 文章 2021-01-27 17:21 419 0 全屏看文

AI助手支持GPT4.0

云函数调用外部关系型数据库如何添加IP白名单How to add an IP whitelist to cloud functions calling external relational databases

云函数调用外部关系型数据库如何添加IP白名单

https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/functions/getting-started.html

我在云函数中要调用别的平台的关系型数据库mysql(比如华为云RDS或者阿里云的RDS) 。对方mysql系统有IP白名单要求,IP在白名单里面才能访问数据库。那么我如何知道云函数的网段地址呢

https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/functions/getting-started.html In the cloud function, I need to call the relational database mysql of other platforms (such as Huawei cloud RDS or Alibaba cloud RDS). The other side's MySQL system has IP white list requirements, IP can only access the database in the white list. So how do I know the network segment address of cloud function

回答:

林浩杰:

支持固定IP,使用nightly版本,这:

前提,得后付费版本或者是付费套餐哦。

Mr.Zhao:

云函数可以固定公网ip

施小雨:

或者微信小程序调用别的地方的系统的数据库数据展示,如何获取系统的IP网段加入到对方RDS的白名单中

-EOF-

AI助手支持GPT4.0