云功能和云构建
我已经通过电子邮件收到通知,我需要为我的Firebase项目执行以下操作:
[Action Required] Enable the Google Cloud Build API for your Cloud Functions project(s) before April 20, 2020
该消息进一步说明Cloud Functions将来将使用Cloud Build,Container Registry和Cloud Storage来部署代码。
开票
收到通知后,我按照说明的步骤进行操作:
- Access the Cloud Build API link in the Cloud Console.
- Select your project from the drop-down menu.
- 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.
我访问了链接并按照步骤进行操作,但失败了:
This API cannot be enabled at the moment. You may lack appropriate permissions.
对我的Firebase项目使用Cloud Build in the Google Cloud Console上的“启用”按钮可以显示:Billing required
这是否意味着现在需要为Firebase的Cloud Functions启用计费功能,即 Blaze计划?
最佳答案
答案是是(经支持确认),否。
如果您想在4月20日之后部署Cloud Functions,则必须在GCP控制台中设置计费帐户。这是因为超出免费配额时,您需要为Cloud Build支付额外费用。
但是,您无需在Firebase中选择Blaze计划。
关于firebase - 由于Cloud Build API,Firebase Cloud Functions是否要求在2020年4月20日之前启用计费功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60453949/