【问题标题】:GCP says "Compute Engine API has not been used in project" but it is enabled alreadyGCP 说“项目中未使用 Compute Engine API”,但已启用
【发布时间】:2020-02-18 08:40:44
【问题描述】:

使用带有 terraform 的 GCP 创建 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 天了。

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

【问题讨论】:

  • 您正在运行什么命令导致此错误?
  • 您是否为此项目启用了计费功能?仔细检查错误消息中的项目 ID 与您启用了 Compute Engine API 的项目。

标签: google-cloud-platform google-compute-engine google-kubernetes-engine


【解决方案1】:

您是否为此项目启用了结算功能?仔细检查错误消息中的项目 ID 与您启用了 Compute Engine API 的项目。 – John Hanley 3 分钟前

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

【讨论】:

    猜你喜欢
    • 2021-04-20
    • 1970-01-01
    • 1970-01-01
    • 2017-12-24
    • 1970-01-01
    • 1970-01-01
    • 2021-06-21
    • 2019-01-15
    • 2017-05-11
    相关资源
    最近更新 更多