简体   繁体   English

app engine public IP 一直在定期更改,有什么解决方案可以使它成为 static?

[英]app engine public IP has been changing in regular intervals, Is there any solution to make it static?

I am using an App engine and a SQL database in GCP.我在 GCP 中使用 App 引擎和 SQL 数据库。 In order to access the database from the app engine, I need to whitelist the app engine in allowed networks.为了从应用引擎访问数据库,我需要在允许的网络中将应用引擎列入白名单。 We are not sure of the reason but the app engine IP is being changed automatically.我们不确定原因,但应用引擎 IP 正在自动更改。 Whenever the application gives some error I need to go to the app engine and get the public IP and need to add that IP to SQL server allowed networks. Whenever the application gives some error I need to go to the app engine and get the public IP and need to add that IP to SQL server allowed networks. I need help with following我需要以下帮助

  1. What will be the reason for the app engine IP address change?应用引擎 IP 地址更改的原因是什么?
  2. Is there any alternative for connecting the app engine to database without whitelisting?是否有任何替代方法可以将应用引擎连接到数据库而无需列入白名单?
  3. Can we get the static IP for an app engine?我们可以为应用引擎获取 static IP 吗?

Thank you.谢谢你。

What will be the reason for the app engine IP address change?应用引擎 IP 地址更改的原因是什么?

As mentioned in the documentation , Google uses a wide range of IP addresses for its different services, and the addresses may change without notification.文档中所述,Google 为其不同的服务使用了广泛的 IP 地址,并且地址可能会更改,恕不另行通知。 Google App Engine is a Platform as a Service offering which hosts a wide variety of 3rd party applications. Google App Engine 是一种平台即服务产品,可托管各种第 3 方应用程序。 This post announces changes in the IP address range and headers used by the Google App Engine URLFetch (outbound HTTP) and outbound sockets APIs.这篇文章宣布了 IP 地址范围和 Google App Engine URLFetch(出站 HTTP)和出站 sockets API 使用的标头的更改。

While we recommend that App Engine IP ranges not be used to filter inbound requests, we are aware that some services have created filters that rely on specific addresses.虽然我们建议不要使用 App Engine IP 范围来过滤入站请求,但我们知道某些服务创建了依赖于特定地址的过滤器。 Google App Engine will be changing its IP range beginning this month. Google App Engine 将从本月开始更改其 IP 范围。 Please see these instructions to determine App Engine's IP range.请参阅这些说明以确定 App Engine 的 IP 范围。

Is there any alternative for connecting the app engine to the database without whitelisting?是否有任何替代方法可以将应用程序引擎连接到数据库而不列入白名单?

As suggested by @John Hanley, Use the Cloud SQL Auth Proxy feature of App Engine , You do not need to whitelist IP addresses with the Auth Proxy.正如@John Hanley 所建议的那样,使用App Engine 的 Cloud SQL Auth Proxy 功能,您不需要使用 Auth Proxy 将 IP 地址列入白名单。

Can we get the static IP for an app engine?我们可以为应用引擎获取 static IP 吗?

You can check with the documentation Set up a static outbound IP address , For outbound static IP addresses, you would create a Serverless VPC network , associate a static IP with it, and route all your App Engine traffic through the VPC and out to the Internet via a Cloud NAT gateway and your specified static IP address. You can check with the documentation Set up a static outbound IP address , For outbound static IP addresses, you would create a Serverless VPC network , associate a static IP with it, and route all your App Engine traffic through the VPC and out to the Internet通过Cloud NAT 网关和您指定的 static IP 地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google App Engine - Static IP 地址 - 路由域名 - Google App Engine - Static IP Address - Route Domain Name 在 Google Compute Engine 上删除或释放静态 IP - Removing or releasing a static IP on Google Compute Engine Google Compute Engine 分配静态 IP 定价? - Google Compute Engine Assigning Static IP pricing? 无法使用带出口设置的 VPC 静态 IP 地址从 App Engine Standard 连接到 Cloud SQL:所有流量 - Cannot Connect to Cloud SQL from App Engine Standard using a VPC Static Ip Address with Egress Setting: all-traffic 如何让 aws public ip 在 nginx 的端口 80 上运行 https - how to make aws public ip run on https on port 80 for nginx 当 su.net 使用 NAT 网关时,如何使用 VM public static IP? - How could I use a VM public static IP when subnet uses an NAT gateway? Google App Engine Static 网站处理程序通配符路由 - Google App Engine Static Website Handler Wildcard Routes “没有创建 Firebase App '[DEFAULT]'”尽管调用了“initializeApp()”(Flutter、Firebase) - "No Firebase App '[DEFAULT]' has been created" despite "initializeApp()" has been called (Flutter, Firebase) Google App Engine 是否使用任何管理程序? - Does Google App Engine use any hypervisor? Twilio Flask 应用程序视频通话未通过公共 IP 地址连接 - Twilio Flask app video call is not connecting over a public IP address
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM