NB OS at this particular time is W10. I’m using Firefox.
I have created a new gmail account.
I have looked at this page … but Google has successfully managed to confuse me utterly about what to do to create a “service account key”.
I have gone to this google page and managed to get the “console” to display.
My first attempt was then to list the existing “service keys” (presumably there wouldn’t be any).
Welcome to Cloud Shell! Type "help" to get started.
To set your Cloud Platform project in this session use “gcloud config set project [PROJECT_ID]”
mrodent_restic_location_w10@cloudshell:~$ serviceAccount.keys.list()
> ;
-bash: syntax error near unexpected token `;'
mrodent_restic_location_w10@cloudshell:~$
… at this point I’m not clear whether this “service key” (and the file I’m meant to download) is specific to the account … or to one or more “project(s)” which are mentioned. As far as I’m aware I haven’t create any projects.
[NB My initial attempts to do so after installing the gcloud “package” on my machine failed for reasons unknown:
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. project1
WARNING: Project creation failed: HttpError accessing <https://cloudresourcemanager.googleapis.com/v1/projects?alt=json>: response: <{'vary': 'Origin, X-Origin, Referer', 'content-type': 'application/json; charset=UTF-8', 'content-encoding': 'gzip', 'date': 'Tue, 12 Jul 2022 16:44:23 GMT', 'server': 'ESF', 'cache-control': 'private', 'x-xss-protection': '0', 'x-frame-options': 'SAMEORIGIN', 'x-content-type-options': 'nosniff', 'server-timing': 'gfet4t7; dur=634', 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"', 'transfer-encoding': 'chunked', 'status': 409}>, content <{
"error": {
"code": 409,
"message": "Requested entity already exists",
"status": "ALREADY_EXISTS"
}
}
>
Please make sure to create the project [project1] using
$ gcloud projects create project1
or change to another project using
$ gcloud config set project <PROJECT ID>
D:\Google\Cloud SDK>gcloud projects create project1
ERROR: (gcloud.projects.create) Project creation failed. The project ID you specified is already in use by another project. Please try an alternative ID.
D:\Google\Cloud SDK>gcloud projects create project2
ERROR: (gcloud.projects.create) Project creation failed. The project ID you specified is already in use by another project. Please try an alternative ID.
D:\Google\Cloud SDK>gcloud projects create xxxx11111
Create in progress for [https://cloudresourcemanager.googleapis.com/v1/projects/xxxx11111].
Waiting for [operations/cp.8163186370385598357] to finish...failed.
ERROR: (gcloud.projects.create) Operation [cp.8163186370385598357] failed: 9: Callers must accept Terms of Service
… wow, I really thought I had (accepted the “Terms of Service”). How do I convince it that I have …?]
Nor do I have (obviously) the faintest clue how to use this in-webpage console to do the things I want, such as 1) listing existing keys 2) creating a new “service key” and 3) downloading a new file associated with this.
Could someone point me to an idiot’s guide? If you do, please make sure that it is up-to-date. Things change so fast, and guides often go out of date. At the moment I’m beginning to wonder things like “maybe this ‘service key’ used to be specific to a gmail account… but is now specific to a ‘gmail account project’…”.
But more likely I just haven’t got a clue and have totally lost “situational awareness”.