Firebase 中的 Function Cloud 是否免费(Cloud Functions 部署需要即用即付 (Blaze) 计费计划) [英] Is Function Cloud in Firebase Free or Not (Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan)

查看:27
本文介绍了Firebase 中的 Function Cloud 是否免费(Cloud Functions 部署需要即用即付 (Blaze) 计费计划)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建我的第一个部署函数时我无法部署因为我有错误要求我升级到我的帐户到 Blaze 我需要知道我可以在使用免费帐户时部署函数吗??

When i make my first deploy function I can't deploying Because I have Error Asks me to make Upgrade to my account to Blaze I need to Know Can i deploy Function when i use free account??

输出:

i  deploying functions
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
!  functions: missing required API cloudbuild.googleapis.com. Enabling now...
+  functions: required API cloudfunctions.googleapis.com is enabled

Error: Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan. To upgrade your project, visit the following URL:

https://console.firebase.google.com/project/institute-for-admin/usage/details

For additional information about this requirement, see Firebase FAQs:

https://firebase.google.com/support/faq#functions-runtime

推荐答案

如消息所述,如果您面向 nodejs 10,则无法在 Spark 免费层上部署函数.阅读常见问题解答链接:

As the message says, you can't deploy functions on the Spark free tier, if you target nodejs 10. Read the link to the FAQ:

为什么我需要一个计费帐户来使用 Node.js 10 运行时适用于 Firebase 的云函数?

由于计划于 8 月对其底层架构进行更新2020 年 1 月 17 日,Firebase 的 Cloud Functions 将依赖于一些额外的付费 Google 服务:Cloud BuildContainer Registry云存储.这些架构更新将适用于已部署的功能到 Node.js 10 运行时.这些服务的使用将在除了现有定价.

Because of updates to its underlying architecture planned for August 17, 2020, Cloud Functions for Firebase will rely on some additional paid Google services: Cloud Build, Container Registry, and Cloud Storage. These architecture updates will apply for functions deployed to the Node.js 10 runtime. Usage of these services will be billed in addition to existing pricing.

在新架构中,Cloud Build 支持部署职能.您只需支付所需的计算时间构建函数的运行时容器.

In the new architecture, Cloud Build supports the deployment of functions. You'll be billed only for the computing time required to build a function's runtime container.

Cloud Storage 与 Google Container Registry 互操作,将为运行函数的容器提供存储空间.您将为部署功能所需的每个容器付费.如果您目前在免费使用限制内使用 Cloud Functions,您可能会注意到存储的每个容器都有新的小额费用——例如,1GB 存储空间每月收费 0.026 美元.

Cloud Storage, interoperating with Google Container Registry, will provide storage space for the containers in which functions run. You'll be billed for each container required to deploy a function. If you're currently using Cloud Functions within free usage limits, you may notice new, small charges for each container stored— for example, 1GB of storage is billed at $0.026 per month.

要详细了解您的帐单可能会如何变化,请查看关注

To understand more about how your bill might change, please review the following

  • Cloud Functions pricing: existing free tier is unchanged.
  • Cloud Build pricing: Cloud Build provides for a free tier.
  • Container Registry pricing.

如果您想以节点 8 为目标,那可能仍然有效.但它已被弃用,您的功能最终将停止工作.您仍然需要迁移它们在这种情况下发送到节点 10,并提供一个计费帐户.

If you want to target node 8, that might still work. But it's been deprecated, and your functions will eventually stop working. You would still have to migrate them to node 10 in that case, and provide a billing account.

Cloud Functions 仍有每月免费配额,定价页面中记录.但是您必须提供信用卡并制定账单计划才能使用它.您将负责支付任何每月超额费用.

Cloud Functions still has a monthly free allowance that's documented in the pricing page. But you will have to provide a credit card and be on a billing plan in order to use it. You will be responsible for paying for any monthly overage.

这篇关于Firebase 中的 Function Cloud 是否免费(Cloud Functions 部署需要即用即付 (Blaze) 计费计划)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆