I am trying to create a key file for a service account on GCP with gcloud
gcloud iam service-accounts keys create ~/.config/gcloud/key.json \
--iam-account terraform@$myproject.iam.gserviceaccount.com
Unfortunately, it responds
(gcloud) Unable to create private file [~/.config/gcloud/key.json]: [Errno 2] No such file or directory: '~/.config/gcloud/key.json'
The folder
'~/.config/gcloud/'
exists.
whoami
? What is the output fromls -ld ~/.config/gcloud
? – John Hanley