Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用gcloud在GCP中启用API服务疑难解答_Api_Google Cloud Platform_Gcloud - Fatal编程技术网

如何使用gcloud在GCP中启用API服务疑难解答

如何使用gcloud在GCP中启用API服务疑难解答,api,google-cloud-platform,gcloud,Api,Google Cloud Platform,Gcloud,在执行terraform apply时,我遇到了一个错误,要求我为我的项目启用IAM API Error: Error creating service account: googleapi: Error 403: Identity and Access Management (IAM) API has not been used in project [PROJECT-NUMBER] before or it is disabled. Enable it by visiting http

在执行terraform apply时,我遇到了一个错误,要求我为我的项目启用IAM API

Error: Error creating service account: googleapi: Error 403: Identity and Access 
Management (IAM) API has not been used in project [PROJECT-NUMBER] before or it is 
disabled. Enable it by visiting 
https://console.developers.google.com/apis/api/iam.googleapis.com/overview?
project=[PROJECT-NUMBER] then retry. If you enabled this API recently, wait a few 
minutes for the action to propagate to our systems and retry., 
accessNotConfigured
当我尝试使用gcloud启用它时,服务enable只是挂起。有没有办法获得更多的信息

根据报告,一切都是绿色的

我在使用UI时也看到了同样的问题

$gcloud服务启用iam.googleapis.com container.googleapis.com
错误消息

ERROR: gcloud crashed (WaitException): last_result=True, last_retrial=178, time_passed_ms=1790337,time_to_wait=10000
--log http
添加到(任意)
gcloud
命令,以获取底层API调用的详细日志记录。这些可以提供有关错误发生位置的更多详细信息

您可能也希望显式引用该项目:
--project=…


是否需要启用IAM?这是一项如此基础的服务,如果不启用它,我很惊讶任何东西都能正常工作。

我刚刚从我的环境中尝试了命令,结果成功了。你能再试一次吗?也许是短暂的?接下来,用Guffic信息的输出更新你的问题,删除你认为敏感的任何东西。重试后这个问题仍然存在吗?Kolban和DazWilkin提到的评论哪里足以解决您的疑问?重试后,这个问题仍然存在。然而,如果我只尝试启用一个API,它就会工作。e、 还有科尔班,我还没能复制这个问题。如果您有确切的复制案例(包括步骤和地形配置文件),请在云下IAM组件上打开案例。