我可以使用 GCP 基础设施作为代码来设置 Firebase Auth、Firestore、RDB、Cloud Functions 吗?

lag*_*gos 6 firebase google-cloud-platform google-cloud-functions google-cloud-firestore infrastructure-as-code

我知道我可以使用基础设施作为代码来设置 Cloud Firestore 和 GCP Cloud Functions,但我很感兴趣它会显示在 Firebase 控制台上。我也找不到任何使用 IaaC 部署 Firebase 身份验证和实时数据库的方法。

Dou*_*son 6

Firebase CLI 或 gcloud 部署的任何 Cloud Functions 都将显示在 Firebase 控制台和 Cloud 控制台中。

Firestore 中填充的任何数据也将显示在两个控制台中。

Cloud 控制台无法查看 Firebase 身份验证或实时数据库,因为这些服务是 Firebase 独有的。您必须使用 Firebase 控制台及其工具和 SDK 才能使用这些产品。

事实上,Firebase 项目只是一个在顶部启用了额外 API 和服务的云项目。阅读有关 Firebase 和 Google Cloud 之间关系的博客系列可能会对您有所帮助。