GCP 显示“项目中尚未使用 Compute Engine API”但已启用

Chr*_*ash 5 google-compute-engine google-cloud-platform google-kubernetes-engine

使用 GCP 和 terraform 创建 VPC 和全局 IP 地址,我不断收到此错误。

Error creating Network: googleapi: Error 403: Access Not Configured. Compute Engine API has not been used in project XXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/compute.googleapis.com/overview?project=XXXthen retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured

Compute API 已启用至少一个月。

我也在使用具有owner项目权限的服务帐户。

我不明白如何使这项工作。这种情况已经持续了3天了。

有没有人有任何见解,因为我现在完全被难住了。

Chr*_*ash 2

\n

您是否为该项目启用了计费功能?仔细检查错误消息中的项目 ID 与您启用了 Compute Engine API 的项目。\xe2\x80\x93 约翰·汉利 3 分钟前

\n
\n\n

启用计费 API 解决了这个问题,谢谢

\n