我正在尝试使用 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 such file or directory: '~/.config/gcloud/key.json'
文件夹
'~/.config/gcloud/'
存在。