Google cloud platform 无法使用gcloud为iam帐户GCP创建密钥文件
我正在尝试使用gcloud为GCP上的服务帐户创建密钥文件Google cloud platform 无法使用gcloud为iam帐户GCP创建密钥文件,google-cloud-platform,gcloud,google-iam,Google Cloud Platform,Gcloud,Google Iam,我正在尝试使用gcloud为GCP上的服务帐户创建密钥文件 gcloud iam service-accounts keys create ~/.config/gcloud/key.json \ --iam-account terraform@$myproject.iam.gserviceaccount.com 不幸的是,它作出了回应 (gcloud) Unable to create private file [~/.config/gcloud/key.json]: [Errno 2] No
gcloud iam service-accounts keys create ~/.config/gcloud/key.json \
--iam-account terraform@$myproject.iam.gserviceaccount.com
不幸的是,它作出了回应
(gcloud) Unable to create private file [~/.config/gcloud/key.json]: [Errno 2] No such file or directory: '~/.config/gcloud/key.json'
文件夹
'~/.config/gcloud/'
存在。问题是:
'~/.config/gcloud/'
这应该是
'/home/mike/.config/gcloud/'
正如约翰·汉利正确指出的那样。问题在于:
'~/.config/gcloud/'
这应该是
'/home/mike/.config/gcloud/'
正如John Hanley正确指出的那样。如果指定完整路径名会发生什么?
whoami
的输出是什么?ls-ld~/.config/gcloud
的输出是什么?完整路径名有效!如果指定完整路径名,会发生什么情况?whoami
的输出是什么?ls-ld~/.config/gcloud
的输出是什么?完整路径名有效!