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)

查看:281
本文介绍了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的云功能?

Why will I need a billing account to use the Node.js 10 runtime for Cloud Functions for Firebase?

由于计划在八月份对其基础架构进行更新 2020年7月17日,Firebase的云功能将依赖于其他一些功能 付费的Google服务: Cloud Build 云存储.这些体系结构更新将适用于已部署的功能 到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 为运行功能的容器提供存储空间. 您需要为部署功能所需的每个容器付费.如果 您当前在免费使用限制内使用Cloud Functions,您 可能会为每个存储的容器收取新的小额费用,例如, 1a的存储空间按每月$ 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天全站免登陆