由于 Cloud Build API,Firebase Cloud Functions 是否需要在 2020 年 4 月 20 日之前启用计费?

Do Firebase Cloud Functions require Billing to be enabled by April 20, 2020 because of the Cloud Build API?

云功能和云构建

我已通过电子邮件收到通知,我需要为我的 Firebase 项目执行以下操作:

[Action Required] Enable the Google Cloud Build API for your Cloud Functions project(s) before April 20, 2020

该消息进一步说明Cloud Functions will use Cloud Build, Container Registry, and Cloud Storage以后为了部署代码。

结算

收到通知后,我按照描述的步骤操作:

  1. Access the Cloud Build API link in the Cloud Console.
  2. Select your project from the drop-down menu.
  3. Click Continue to enable the Cloud Build API for the project. A box will appear in the lower-left corner to confirm the API is enabled.

我访问了 link 并按照步骤操作但失败了:This API cannot be enabled at the moment. You may lack appropriate permissions. 在我的 Firebase 项目中使用 Cloud Build in the Google Cloud Console 处的 "Enable" 按钮显示:

Billing required


这是否意味着 Cloud Functions for Firebase 现在需要启用计费,即 Blaze 计划

答案是(支持确认)和否。


如果您想在 4 月 20 日之后部署 Cloud Functions,您将必须在 GCP 控制台 中设置一个计费帐户。这是因为超出免费额度需要额外支付Cloud Build费用。


但是,您不需要 select Firebase 中的 Blaze 计划

是的!你永远不能相信 google 会长期有效。

现在他们想让您转为编写云函数的付费计划。

如果没问题,但是当你考虑到即使是简单的事情,比如知道 firebase/firestore 中的集合数量,也需要付费计费计划,因为你可能想使用 increment/decrement counter on database triggers,看到这样的数据库怎么用,真是一团糟。

我认为是时候让开发人员找到一些其他更诚实的途径了。