接收403错误,将现有Firebase项目导入Terraform州

接收403错误,将现有Firebase项目导入Terraform州,firebase,google-cloud-platform,terraform,Firebase,Google Cloud Platform,Terraform,在将现有基础设施迁移到“基础设施即代码”设置时,我们还需要导入现有的Firebase项目 按照来自的说明进行操作。以下代码段已添加到相应的terraform模块中 resource "google_firebase_project" "default" { provider = google-beta project = "my-project-id" } 现有Firebase项目的导入是通过运行命令启动的 terraform

在将现有基础设施迁移到“基础设施即代码”设置时,我们还需要导入现有的Firebase项目

按照来自的说明进行操作。以下代码段已添加到相应的terraform模块中

resource "google_firebase_project" "default" {
  provider = google-beta
  project = "my-project-id"
}
现有Firebase项目的导入是通过运行命令启动的

terraform导入google\u firebase\u项目。默认我的项目id
这导致以下输出:

google_firebase_project.default: Importing from ID "my-project-id"...
google_firebase_project.default: Import prepared!
  Prepared google_firebase_project for import
google_firebase_project.default: Refreshing state... [id=projects/my-project-id]
Error: Error when reading or editing FirebaseProject "projects/my-project-id": googleapi: Error 403: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebase.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/.

错误是通过使用服务帐户运行Terraform或使用最终用户帐户模拟服务帐户获得的。所有身份都具有相应GCP项目的所有者权限。

您好,您有没有找到解决方案?我也遇到了firebase API的凭据错误。不,我们已经在我们的组织中删除了firebase在新项目中的使用,因为API不足以满足成熟的“一切都是代码”软件交付工作流。如果你有okayish terraform技能,你可以从GCP本地资源中获得同样的技能,而不需要更少的技术债务和更多的可能性。嗨,你找到了解决方案吗?我也遇到了firebase API的凭据错误。不,我们已经在我们的组织中删除了firebase在新项目中的使用,因为API不足以满足成熟的“一切都是代码”软件交付工作流。如果你有okayish terraform技能,你可以从GCP本地资源获得同样的技能,而不需要更少的技术债务和更多的可能性。