Unable to creat a Google Cloud service account
I get an error running gcloud SDK to set up a service account on the RPi3B+ using the Raspberian OS. I have an account on Google API under the email address of dxxxxx.xxxxx.xx@gmail.com
with an API Key. The following error is generated under the command line:
pi@raspberrypi:~ $ gcloud iam service-accounts create dxxxxx.xxxxx.xx
ERROR: (gcloud.iam.service-accounts.create) argument NAME: Bad value
[dxxxxx.xxxxx.xx]: Service account name must be between 6 and 30
characters (inclusive), must begin with a lowercase letter, and
consist of lowercase alphanumeric characters that can be separated by
hyphens. Usage: gcloud iam service-accounts create NAME [optional
flags] optional flags may be --display-name | --help
For detailed information on this command and its flags, run: gcloud
iam service-accounts create --help
I have met the NAME parameter requirements from what I read in the documentation. All the "x"s are lowercase alpha-numeric.
google-cloud-platform raspberry-pi3 gcloud service-accounts
add a comment |
I get an error running gcloud SDK to set up a service account on the RPi3B+ using the Raspberian OS. I have an account on Google API under the email address of dxxxxx.xxxxx.xx@gmail.com
with an API Key. The following error is generated under the command line:
pi@raspberrypi:~ $ gcloud iam service-accounts create dxxxxx.xxxxx.xx
ERROR: (gcloud.iam.service-accounts.create) argument NAME: Bad value
[dxxxxx.xxxxx.xx]: Service account name must be between 6 and 30
characters (inclusive), must begin with a lowercase letter, and
consist of lowercase alphanumeric characters that can be separated by
hyphens. Usage: gcloud iam service-accounts create NAME [optional
flags] optional flags may be --display-name | --help
For detailed information on this command and its flags, run: gcloud
iam service-accounts create --help
I have met the NAME parameter requirements from what I read in the documentation. All the "x"s are lowercase alpha-numeric.
google-cloud-platform raspberry-pi3 gcloud service-accounts
1
We can't tell whether your account name is valid or not, because (obviously) you can't give it to us to test. If you're certain it meets the requirements, contact Google Support directly for help, as they can verify that it's valid and access your account to deal with any issues.
– Ken White
Jan 3 at 1:00
Appreciate the suggestion. As far as I can tell the account NAME is valid; however, I was dubious about the inclusion of "." in the name? I will contact Google support - not sure at this point how to do that.
– Donald Downs
Jan 4 at 1:36
add a comment |
I get an error running gcloud SDK to set up a service account on the RPi3B+ using the Raspberian OS. I have an account on Google API under the email address of dxxxxx.xxxxx.xx@gmail.com
with an API Key. The following error is generated under the command line:
pi@raspberrypi:~ $ gcloud iam service-accounts create dxxxxx.xxxxx.xx
ERROR: (gcloud.iam.service-accounts.create) argument NAME: Bad value
[dxxxxx.xxxxx.xx]: Service account name must be between 6 and 30
characters (inclusive), must begin with a lowercase letter, and
consist of lowercase alphanumeric characters that can be separated by
hyphens. Usage: gcloud iam service-accounts create NAME [optional
flags] optional flags may be --display-name | --help
For detailed information on this command and its flags, run: gcloud
iam service-accounts create --help
I have met the NAME parameter requirements from what I read in the documentation. All the "x"s are lowercase alpha-numeric.
google-cloud-platform raspberry-pi3 gcloud service-accounts
I get an error running gcloud SDK to set up a service account on the RPi3B+ using the Raspberian OS. I have an account on Google API under the email address of dxxxxx.xxxxx.xx@gmail.com
with an API Key. The following error is generated under the command line:
pi@raspberrypi:~ $ gcloud iam service-accounts create dxxxxx.xxxxx.xx
ERROR: (gcloud.iam.service-accounts.create) argument NAME: Bad value
[dxxxxx.xxxxx.xx]: Service account name must be between 6 and 30
characters (inclusive), must begin with a lowercase letter, and
consist of lowercase alphanumeric characters that can be separated by
hyphens. Usage: gcloud iam service-accounts create NAME [optional
flags] optional flags may be --display-name | --help
For detailed information on this command and its flags, run: gcloud
iam service-accounts create --help
I have met the NAME parameter requirements from what I read in the documentation. All the "x"s are lowercase alpha-numeric.
google-cloud-platform raspberry-pi3 gcloud service-accounts
google-cloud-platform raspberry-pi3 gcloud service-accounts
edited Jan 21 at 13:01
Cristian Sanchez
1027
1027
asked Jan 2 at 23:24
Donald DownsDonald Downs
11
11
1
We can't tell whether your account name is valid or not, because (obviously) you can't give it to us to test. If you're certain it meets the requirements, contact Google Support directly for help, as they can verify that it's valid and access your account to deal with any issues.
– Ken White
Jan 3 at 1:00
Appreciate the suggestion. As far as I can tell the account NAME is valid; however, I was dubious about the inclusion of "." in the name? I will contact Google support - not sure at this point how to do that.
– Donald Downs
Jan 4 at 1:36
add a comment |
1
We can't tell whether your account name is valid or not, because (obviously) you can't give it to us to test. If you're certain it meets the requirements, contact Google Support directly for help, as they can verify that it's valid and access your account to deal with any issues.
– Ken White
Jan 3 at 1:00
Appreciate the suggestion. As far as I can tell the account NAME is valid; however, I was dubious about the inclusion of "." in the name? I will contact Google support - not sure at this point how to do that.
– Donald Downs
Jan 4 at 1:36
1
1
We can't tell whether your account name is valid or not, because (obviously) you can't give it to us to test. If you're certain it meets the requirements, contact Google Support directly for help, as they can verify that it's valid and access your account to deal with any issues.
– Ken White
Jan 3 at 1:00
We can't tell whether your account name is valid or not, because (obviously) you can't give it to us to test. If you're certain it meets the requirements, contact Google Support directly for help, as they can verify that it's valid and access your account to deal with any issues.
– Ken White
Jan 3 at 1:00
Appreciate the suggestion. As far as I can tell the account NAME is valid; however, I was dubious about the inclusion of "." in the name? I will contact Google support - not sure at this point how to do that.
– Donald Downs
Jan 4 at 1:36
Appreciate the suggestion. As far as I can tell the account NAME is valid; however, I was dubious about the inclusion of "." in the name? I will contact Google support - not sure at this point how to do that.
– Donald Downs
Jan 4 at 1:36
add a comment |
3 Answers
3
active
oldest
votes
Just to know, did you tried to run the command without the dots? as Google says, the dots don't matter on Gmail, and its possible that when you try to run this on the shell, you are getting the error for using dots.
TL:DR: can you try to run gcloud iam service-accounts create dxxxxxxxxxxxx
I did create an account by removing the "." and gcloud accepted it with a prompt to set the project in the current workspace using: $ gcloud config set project VALUE where VALUE was the Google API project name with credentials. Seems to have solved the problem - now to see if the API functions. Thanks for your help.
– Donald Downs
Jan 24 at 2:39
@DonaldDowns if this worked, can you please accept the answer ?
– Cristian Sanchez
Jan 24 at 8:08
add a comment |
You cannot use periods .
in service account names.
You cannot use a regular email address as the name to create a service account. Service Account email addresses have a special format: name@<project_id>.iam.gserviceaccount.com
This means that you do not have a service account with the name dxxxxx.xxxxx.xx@gmail.com
.
You can have a Google Accounts email address with periods in the email address.
The Google Cloud Console, when creating a service account, will convert periods to hyphens.
If you attempt to create a service account with periods using gcloud
you will receive an error similar to the following:
gcloud.iam.service-accounts.create) argument NAME: Bad value
[bob.jones]: Service account name must be between 6 and 30
characters (inclusive), must begin with a lowercase letter, and
consist of lowercase alphanumeric characters that can be separated by
hyphens.
If you attempt to create a service account with periods in it using Python 3.x you will receive an error similar to the following:
HttpError 400 when requesting
https://iam.googleapis.com/v1/projects/development-123456/serviceAccounts?alt=json
returned "bob.jones does not match [a-z][a-zd-]*[a-zd]."
add a comment |
Thanks to all. Documentation could be improved.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014496%2funable-to-creat-a-google-cloud-service-account%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Just to know, did you tried to run the command without the dots? as Google says, the dots don't matter on Gmail, and its possible that when you try to run this on the shell, you are getting the error for using dots.
TL:DR: can you try to run gcloud iam service-accounts create dxxxxxxxxxxxx
I did create an account by removing the "." and gcloud accepted it with a prompt to set the project in the current workspace using: $ gcloud config set project VALUE where VALUE was the Google API project name with credentials. Seems to have solved the problem - now to see if the API functions. Thanks for your help.
– Donald Downs
Jan 24 at 2:39
@DonaldDowns if this worked, can you please accept the answer ?
– Cristian Sanchez
Jan 24 at 8:08
add a comment |
Just to know, did you tried to run the command without the dots? as Google says, the dots don't matter on Gmail, and its possible that when you try to run this on the shell, you are getting the error for using dots.
TL:DR: can you try to run gcloud iam service-accounts create dxxxxxxxxxxxx
I did create an account by removing the "." and gcloud accepted it with a prompt to set the project in the current workspace using: $ gcloud config set project VALUE where VALUE was the Google API project name with credentials. Seems to have solved the problem - now to see if the API functions. Thanks for your help.
– Donald Downs
Jan 24 at 2:39
@DonaldDowns if this worked, can you please accept the answer ?
– Cristian Sanchez
Jan 24 at 8:08
add a comment |
Just to know, did you tried to run the command without the dots? as Google says, the dots don't matter on Gmail, and its possible that when you try to run this on the shell, you are getting the error for using dots.
TL:DR: can you try to run gcloud iam service-accounts create dxxxxxxxxxxxx
Just to know, did you tried to run the command without the dots? as Google says, the dots don't matter on Gmail, and its possible that when you try to run this on the shell, you are getting the error for using dots.
TL:DR: can you try to run gcloud iam service-accounts create dxxxxxxxxxxxx
answered Jan 21 at 11:21
Cristian SanchezCristian Sanchez
1027
1027
I did create an account by removing the "." and gcloud accepted it with a prompt to set the project in the current workspace using: $ gcloud config set project VALUE where VALUE was the Google API project name with credentials. Seems to have solved the problem - now to see if the API functions. Thanks for your help.
– Donald Downs
Jan 24 at 2:39
@DonaldDowns if this worked, can you please accept the answer ?
– Cristian Sanchez
Jan 24 at 8:08
add a comment |
I did create an account by removing the "." and gcloud accepted it with a prompt to set the project in the current workspace using: $ gcloud config set project VALUE where VALUE was the Google API project name with credentials. Seems to have solved the problem - now to see if the API functions. Thanks for your help.
– Donald Downs
Jan 24 at 2:39
@DonaldDowns if this worked, can you please accept the answer ?
– Cristian Sanchez
Jan 24 at 8:08
I did create an account by removing the "." and gcloud accepted it with a prompt to set the project in the current workspace using: $ gcloud config set project VALUE where VALUE was the Google API project name with credentials. Seems to have solved the problem - now to see if the API functions. Thanks for your help.
– Donald Downs
Jan 24 at 2:39
I did create an account by removing the "." and gcloud accepted it with a prompt to set the project in the current workspace using: $ gcloud config set project VALUE where VALUE was the Google API project name with credentials. Seems to have solved the problem - now to see if the API functions. Thanks for your help.
– Donald Downs
Jan 24 at 2:39
@DonaldDowns if this worked, can you please accept the answer ?
– Cristian Sanchez
Jan 24 at 8:08
@DonaldDowns if this worked, can you please accept the answer ?
– Cristian Sanchez
Jan 24 at 8:08
add a comment |
You cannot use periods .
in service account names.
You cannot use a regular email address as the name to create a service account. Service Account email addresses have a special format: name@<project_id>.iam.gserviceaccount.com
This means that you do not have a service account with the name dxxxxx.xxxxx.xx@gmail.com
.
You can have a Google Accounts email address with periods in the email address.
The Google Cloud Console, when creating a service account, will convert periods to hyphens.
If you attempt to create a service account with periods using gcloud
you will receive an error similar to the following:
gcloud.iam.service-accounts.create) argument NAME: Bad value
[bob.jones]: Service account name must be between 6 and 30
characters (inclusive), must begin with a lowercase letter, and
consist of lowercase alphanumeric characters that can be separated by
hyphens.
If you attempt to create a service account with periods in it using Python 3.x you will receive an error similar to the following:
HttpError 400 when requesting
https://iam.googleapis.com/v1/projects/development-123456/serviceAccounts?alt=json
returned "bob.jones does not match [a-z][a-zd-]*[a-zd]."
add a comment |
You cannot use periods .
in service account names.
You cannot use a regular email address as the name to create a service account. Service Account email addresses have a special format: name@<project_id>.iam.gserviceaccount.com
This means that you do not have a service account with the name dxxxxx.xxxxx.xx@gmail.com
.
You can have a Google Accounts email address with periods in the email address.
The Google Cloud Console, when creating a service account, will convert periods to hyphens.
If you attempt to create a service account with periods using gcloud
you will receive an error similar to the following:
gcloud.iam.service-accounts.create) argument NAME: Bad value
[bob.jones]: Service account name must be between 6 and 30
characters (inclusive), must begin with a lowercase letter, and
consist of lowercase alphanumeric characters that can be separated by
hyphens.
If you attempt to create a service account with periods in it using Python 3.x you will receive an error similar to the following:
HttpError 400 when requesting
https://iam.googleapis.com/v1/projects/development-123456/serviceAccounts?alt=json
returned "bob.jones does not match [a-z][a-zd-]*[a-zd]."
add a comment |
You cannot use periods .
in service account names.
You cannot use a regular email address as the name to create a service account. Service Account email addresses have a special format: name@<project_id>.iam.gserviceaccount.com
This means that you do not have a service account with the name dxxxxx.xxxxx.xx@gmail.com
.
You can have a Google Accounts email address with periods in the email address.
The Google Cloud Console, when creating a service account, will convert periods to hyphens.
If you attempt to create a service account with periods using gcloud
you will receive an error similar to the following:
gcloud.iam.service-accounts.create) argument NAME: Bad value
[bob.jones]: Service account name must be between 6 and 30
characters (inclusive), must begin with a lowercase letter, and
consist of lowercase alphanumeric characters that can be separated by
hyphens.
If you attempt to create a service account with periods in it using Python 3.x you will receive an error similar to the following:
HttpError 400 when requesting
https://iam.googleapis.com/v1/projects/development-123456/serviceAccounts?alt=json
returned "bob.jones does not match [a-z][a-zd-]*[a-zd]."
You cannot use periods .
in service account names.
You cannot use a regular email address as the name to create a service account. Service Account email addresses have a special format: name@<project_id>.iam.gserviceaccount.com
This means that you do not have a service account with the name dxxxxx.xxxxx.xx@gmail.com
.
You can have a Google Accounts email address with periods in the email address.
The Google Cloud Console, when creating a service account, will convert periods to hyphens.
If you attempt to create a service account with periods using gcloud
you will receive an error similar to the following:
gcloud.iam.service-accounts.create) argument NAME: Bad value
[bob.jones]: Service account name must be between 6 and 30
characters (inclusive), must begin with a lowercase letter, and
consist of lowercase alphanumeric characters that can be separated by
hyphens.
If you attempt to create a service account with periods in it using Python 3.x you will receive an error similar to the following:
HttpError 400 when requesting
https://iam.googleapis.com/v1/projects/development-123456/serviceAccounts?alt=json
returned "bob.jones does not match [a-z][a-zd-]*[a-zd]."
answered Jan 22 at 8:48
John HanleyJohn Hanley
17.4k2633
17.4k2633
add a comment |
add a comment |
Thanks to all. Documentation could be improved.
add a comment |
Thanks to all. Documentation could be improved.
add a comment |
Thanks to all. Documentation could be improved.
Thanks to all. Documentation could be improved.
answered Jan 25 at 23:43
Donald DownsDonald Downs
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014496%2funable-to-creat-a-google-cloud-service-account%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
We can't tell whether your account name is valid or not, because (obviously) you can't give it to us to test. If you're certain it meets the requirements, contact Google Support directly for help, as they can verify that it's valid and access your account to deal with any issues.
– Ken White
Jan 3 at 1:00
Appreciate the suggestion. As far as I can tell the account NAME is valid; however, I was dubious about the inclusion of "." in the name? I will contact Google support - not sure at this point how to do that.
– Donald Downs
Jan 4 at 1:36