Cloud Functions for Firebase - 未配置结算帐号 [英] Cloud Functions for Firebase - Billing account not configured

查看:27
本文介绍了Cloud Functions for Firebase - 未配置结算帐号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为 Firebase 实现了新的 Cloud Functions,但日志中有一些让我烦恼的东西:

I just implemented the new Cloud Functions for Firebase, but there something in the log that bothers me:

未配置结算帐号.无法访问外部网络,并且配额受到严格限制.配置结算帐号以删除这些限制

Billing account not configured. External network is not accessible and quotas are severily limited. Configure billing account to remove these restrictions

我实际上设法从外部网络访问了该功能,所以我想知道我真的必须提供我的帐单帐户吗?Firebase 文档中没有任何相关内容.

I actually managed to access the function from the external network, so I'm wondering do I really have to give my billing account? There's nothing about this in the firebase documentation.

我将 Spark 订阅计划用于个人测试目的,如果我不打算支付任何费用,我不想添加帐单信息.

I'm using the Spark subscription plan for personal test purposes and I don't want to add billing info if I'm not going to pay for anything yet.

推荐答案


未配置结算帐号时,Google Cloud Functions 会自动记录未配置结算帐号"警告消息.这并不意味着您的代码不起作用,而只是作为提醒,以防万一您遇到问题.


The "Billing account not configured" warning message is automatically logged by Google Cloud Functions when no billing account is configured. It doesn't mean that your code isn't working, but it merely there as a reminder just in case you have a problem.

限制是关于出站访问 - 例如您的 Function 可以从通用 Internet 请求资源吗?使用函数来响应网络钩子或访问 Google 内部服务(例如实时数据库)绝对没问题.

The restriction is about outbound access - e.g. can your Function request resources from the general internet. Its absolutely fine to use a function to respond to a webhook, or to access Google-internal services such a the Realtime Database.

如果您想调用第三方网络服务(例如),您需要启用计费.

If you wanted to call a third party web service (for example) you'd need to enable billing.

有关其他配额,请查看:https://firebase.google.com/pricing/ - 如您所见,免费层中的调用次数(撰写本文时为 125,000)以及 CPU 和内存(40k cpu-seconds 和 40k GB-seconds)有限制.

For the other quotas, take a look at: https://firebase.google.com/pricing/ - as you can see there are limits to the number of invocations (125,000 at time of writing) and CPU and memory (40k cpu-seconds and 40k GB-seconds) in the free tier.

这篇关于Cloud Functions for Firebase - 未配置结算帐号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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