Sha*_*ark 5 google-cloud-platform gcloud terraform terraform-provider-gcp
我正在尝试设置 Terraform 以与 GCP 一起使用,但在从 gcloud cli 创建新项目时遇到问题:Terraform Lab
我正在使用的命令是
gcloud projects create testproject
Run Code Online (Sandbox Code Playgroud)
我一遍又一遍的错误是:
ERROR: (gcloud.projects.create) Project creation failed. The project ID you specified is already in use by another project. Please try an alternative ID.
Run Code Online (Sandbox Code Playgroud)
这是我到目前为止所做的:
这是我尝试从“gcloud init”命令创建新项目时遇到的错误:
Enter a Project ID. Note that a Project ID CANNOT be changed later.
Project IDs must be 6-30 characters (lowercase ASCII, digits, or
hyphens) in length and start with a lowercase letter. vincetest
WARNING: Project creation failed: HttpError accessing
<https://cloudresourcemanager.googleapis.com/v1/projects?alt=json>:
response: <{'status': '409', 'content-length': '268', 'x-xss
-protection': '1; mode=block', 'x-content-type-options': 'nosniff',
'transfer-encoding': 'chunked', 'vary': 'Origin, X-Origin, Referer',
'server': 'ESF', '-content-encoding': 'gzip',
'cache-control': 'private', 'date': 'Fri, 28 Sep 2018 18:38:11 GMT',
'x-frame-options': 'SAMEORIGIN', 'content-type': 'application/json;
charset=UTF-8'}>, content <{
"error": {
"code": 409,
"message": "Requested entity already exists",
"status": "ALREADY_EXISTS",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"resourceName": "projects/vincetest"
}
]
}
}
>
Run Code Online (Sandbox Code Playgroud)
从网页控制台创建项目工作正常。
项目 ID 在所有项目中都是唯一的。这意味着如果任何用户曾经拥有具有该 ID 的项目,您将无法使用它。testproject
很常见,所以它已经被占用也就不足为奇了。
尝试一个更独特的 ID。一种常见的技术是使用您组织的名称作为前缀。
归档时间: |
|
查看次数: |
8240 次 |
最近记录: |