ERROR: (gcloud.iot.devices.create) PERMISSION_DENIED
I keep getting permission denied when trying to do gcloud commands
gcloud iot devices create 'aq-rpi' --project='aqmon' --region='us-central1' --registry='aqmon' --public-key path=rsa_cert.pem,type=rs256
ERROR: (gcloud.iot.devices.create) PERMISSION_DENIED: The caller does not have permission
and
gcloud iam roles list --project aqmon
ERROR: (gcloud.iam.roles.list) User [my_name@gmail.com] does not have permission to access project [aqmon] (or it may not exist): You don't have permission to list roles in projects/aqmon.
I am the owner of the project, and the project is a freshly created project that I created via the dashboard.
This is my first time using Google's IoT offerings. I've spent several hours trying different things, but I'm at a loss and unable to move forward with even the basic tutorials for IoT Core. What am I doing wrong?
Edit:
Here is the output of gcloud info
my_name@hephaestus:~/Documents/aq$ gcloud info
Google Cloud SDK [225.0.0]
Platform: [Mac OS X, x86_64] ('Darwin', 'hephaestus.local', '17.7.0', 'Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64', 'x86_64', 'i386')
Python Version: [2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]]
Python Location: [/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python]
Site Packages: [Disabled]
Installation Root: [/Users/my_name/Downloads/google-cloud-sdk]
Installed Components:
core: [2018.11.09]
gsutil: [4.34]
bq: [2.0.37]
System PATH: [/Users/my_name/Downloads/google-cloud-sdk/bin:/Users/my_name/.rvm/gems/ruby-2.2.1/bin:/Users/my_name/.rvm/gems/ruby-2.2.1@global/bin:/Users/my_name/.rvm/rubies/ruby-2.2.1/bin:/Users/my_name/.nvm/versions/node/v8.9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/my_name/.rvm/bin:/Users/my_name/.rvm/bin]
Python PATH: [/Users/my_name/Downloads/google-cloud-sdk/lib/third_party:/Users/my_name/Downloads/google-cloud-sdk/lib:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload]
Cloud SDK on PATH: [True]
Kubectl on PATH: [False]
Installation Properties: [/Users/my_name/Downloads/google-cloud-sdk/properties]
User Config Directory: [/Users/my_name/.config/gcloud]
Active Configuration Name: [default]
Active Configuration Path: [/Users/my_name/.config/gcloud/configurations/config_default]
Account: [apanagar@gmail.com]
Project: [aqmon-223120]
Current Properties:
[core]
project: [aqmon-12345]
account: [my_name@gmail.com]
disable_usage_reporting: [False]
Logs Directory: [/Users/my_name/.config/gcloud/logs]
Last Log File: [/Users/my_name/.config/gcloud/logs/2018.11.20/13.49.34.950065.log]
git: [git version 2.17.2 (Apple Git-113)]
ssh: [OpenSSH_7.6p1, LibreSSL 2.6.2]
google-cloud-platform gcloud google-cloud-iot
add a comment |
I keep getting permission denied when trying to do gcloud commands
gcloud iot devices create 'aq-rpi' --project='aqmon' --region='us-central1' --registry='aqmon' --public-key path=rsa_cert.pem,type=rs256
ERROR: (gcloud.iot.devices.create) PERMISSION_DENIED: The caller does not have permission
and
gcloud iam roles list --project aqmon
ERROR: (gcloud.iam.roles.list) User [my_name@gmail.com] does not have permission to access project [aqmon] (or it may not exist): You don't have permission to list roles in projects/aqmon.
I am the owner of the project, and the project is a freshly created project that I created via the dashboard.
This is my first time using Google's IoT offerings. I've spent several hours trying different things, but I'm at a loss and unable to move forward with even the basic tutorials for IoT Core. What am I doing wrong?
Edit:
Here is the output of gcloud info
my_name@hephaestus:~/Documents/aq$ gcloud info
Google Cloud SDK [225.0.0]
Platform: [Mac OS X, x86_64] ('Darwin', 'hephaestus.local', '17.7.0', 'Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64', 'x86_64', 'i386')
Python Version: [2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]]
Python Location: [/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python]
Site Packages: [Disabled]
Installation Root: [/Users/my_name/Downloads/google-cloud-sdk]
Installed Components:
core: [2018.11.09]
gsutil: [4.34]
bq: [2.0.37]
System PATH: [/Users/my_name/Downloads/google-cloud-sdk/bin:/Users/my_name/.rvm/gems/ruby-2.2.1/bin:/Users/my_name/.rvm/gems/ruby-2.2.1@global/bin:/Users/my_name/.rvm/rubies/ruby-2.2.1/bin:/Users/my_name/.nvm/versions/node/v8.9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/my_name/.rvm/bin:/Users/my_name/.rvm/bin]
Python PATH: [/Users/my_name/Downloads/google-cloud-sdk/lib/third_party:/Users/my_name/Downloads/google-cloud-sdk/lib:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload]
Cloud SDK on PATH: [True]
Kubectl on PATH: [False]
Installation Properties: [/Users/my_name/Downloads/google-cloud-sdk/properties]
User Config Directory: [/Users/my_name/.config/gcloud]
Active Configuration Name: [default]
Active Configuration Path: [/Users/my_name/.config/gcloud/configurations/config_default]
Account: [apanagar@gmail.com]
Project: [aqmon-223120]
Current Properties:
[core]
project: [aqmon-12345]
account: [my_name@gmail.com]
disable_usage_reporting: [False]
Logs Directory: [/Users/my_name/.config/gcloud/logs]
Last Log File: [/Users/my_name/.config/gcloud/logs/2018.11.20/13.49.34.950065.log]
git: [git version 2.17.2 (Apple Git-113)]
ssh: [OpenSSH_7.6p1, LibreSSL 2.6.2]
google-cloud-platform gcloud google-cloud-iot
In case it helps anyone else, as @FridayPush pointed out, I used Project Name instead of Project ID
– blueether
Nov 20 '18 at 22:26
add a comment |
I keep getting permission denied when trying to do gcloud commands
gcloud iot devices create 'aq-rpi' --project='aqmon' --region='us-central1' --registry='aqmon' --public-key path=rsa_cert.pem,type=rs256
ERROR: (gcloud.iot.devices.create) PERMISSION_DENIED: The caller does not have permission
and
gcloud iam roles list --project aqmon
ERROR: (gcloud.iam.roles.list) User [my_name@gmail.com] does not have permission to access project [aqmon] (or it may not exist): You don't have permission to list roles in projects/aqmon.
I am the owner of the project, and the project is a freshly created project that I created via the dashboard.
This is my first time using Google's IoT offerings. I've spent several hours trying different things, but I'm at a loss and unable to move forward with even the basic tutorials for IoT Core. What am I doing wrong?
Edit:
Here is the output of gcloud info
my_name@hephaestus:~/Documents/aq$ gcloud info
Google Cloud SDK [225.0.0]
Platform: [Mac OS X, x86_64] ('Darwin', 'hephaestus.local', '17.7.0', 'Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64', 'x86_64', 'i386')
Python Version: [2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]]
Python Location: [/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python]
Site Packages: [Disabled]
Installation Root: [/Users/my_name/Downloads/google-cloud-sdk]
Installed Components:
core: [2018.11.09]
gsutil: [4.34]
bq: [2.0.37]
System PATH: [/Users/my_name/Downloads/google-cloud-sdk/bin:/Users/my_name/.rvm/gems/ruby-2.2.1/bin:/Users/my_name/.rvm/gems/ruby-2.2.1@global/bin:/Users/my_name/.rvm/rubies/ruby-2.2.1/bin:/Users/my_name/.nvm/versions/node/v8.9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/my_name/.rvm/bin:/Users/my_name/.rvm/bin]
Python PATH: [/Users/my_name/Downloads/google-cloud-sdk/lib/third_party:/Users/my_name/Downloads/google-cloud-sdk/lib:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload]
Cloud SDK on PATH: [True]
Kubectl on PATH: [False]
Installation Properties: [/Users/my_name/Downloads/google-cloud-sdk/properties]
User Config Directory: [/Users/my_name/.config/gcloud]
Active Configuration Name: [default]
Active Configuration Path: [/Users/my_name/.config/gcloud/configurations/config_default]
Account: [apanagar@gmail.com]
Project: [aqmon-223120]
Current Properties:
[core]
project: [aqmon-12345]
account: [my_name@gmail.com]
disable_usage_reporting: [False]
Logs Directory: [/Users/my_name/.config/gcloud/logs]
Last Log File: [/Users/my_name/.config/gcloud/logs/2018.11.20/13.49.34.950065.log]
git: [git version 2.17.2 (Apple Git-113)]
ssh: [OpenSSH_7.6p1, LibreSSL 2.6.2]
google-cloud-platform gcloud google-cloud-iot
I keep getting permission denied when trying to do gcloud commands
gcloud iot devices create 'aq-rpi' --project='aqmon' --region='us-central1' --registry='aqmon' --public-key path=rsa_cert.pem,type=rs256
ERROR: (gcloud.iot.devices.create) PERMISSION_DENIED: The caller does not have permission
and
gcloud iam roles list --project aqmon
ERROR: (gcloud.iam.roles.list) User [my_name@gmail.com] does not have permission to access project [aqmon] (or it may not exist): You don't have permission to list roles in projects/aqmon.
I am the owner of the project, and the project is a freshly created project that I created via the dashboard.
This is my first time using Google's IoT offerings. I've spent several hours trying different things, but I'm at a loss and unable to move forward with even the basic tutorials for IoT Core. What am I doing wrong?
Edit:
Here is the output of gcloud info
my_name@hephaestus:~/Documents/aq$ gcloud info
Google Cloud SDK [225.0.0]
Platform: [Mac OS X, x86_64] ('Darwin', 'hephaestus.local', '17.7.0', 'Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64', 'x86_64', 'i386')
Python Version: [2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]]
Python Location: [/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python]
Site Packages: [Disabled]
Installation Root: [/Users/my_name/Downloads/google-cloud-sdk]
Installed Components:
core: [2018.11.09]
gsutil: [4.34]
bq: [2.0.37]
System PATH: [/Users/my_name/Downloads/google-cloud-sdk/bin:/Users/my_name/.rvm/gems/ruby-2.2.1/bin:/Users/my_name/.rvm/gems/ruby-2.2.1@global/bin:/Users/my_name/.rvm/rubies/ruby-2.2.1/bin:/Users/my_name/.nvm/versions/node/v8.9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/my_name/.rvm/bin:/Users/my_name/.rvm/bin]
Python PATH: [/Users/my_name/Downloads/google-cloud-sdk/lib/third_party:/Users/my_name/Downloads/google-cloud-sdk/lib:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload]
Cloud SDK on PATH: [True]
Kubectl on PATH: [False]
Installation Properties: [/Users/my_name/Downloads/google-cloud-sdk/properties]
User Config Directory: [/Users/my_name/.config/gcloud]
Active Configuration Name: [default]
Active Configuration Path: [/Users/my_name/.config/gcloud/configurations/config_default]
Account: [apanagar@gmail.com]
Project: [aqmon-223120]
Current Properties:
[core]
project: [aqmon-12345]
account: [my_name@gmail.com]
disable_usage_reporting: [False]
Logs Directory: [/Users/my_name/.config/gcloud/logs]
Last Log File: [/Users/my_name/.config/gcloud/logs/2018.11.20/13.49.34.950065.log]
git: [git version 2.17.2 (Apple Git-113)]
ssh: [OpenSSH_7.6p1, LibreSSL 2.6.2]
google-cloud-platform gcloud google-cloud-iot
google-cloud-platform gcloud google-cloud-iot
asked Nov 20 '18 at 21:52
blueether
3451418
3451418
In case it helps anyone else, as @FridayPush pointed out, I used Project Name instead of Project ID
– blueether
Nov 20 '18 at 22:26
add a comment |
In case it helps anyone else, as @FridayPush pointed out, I used Project Name instead of Project ID
– blueether
Nov 20 '18 at 22:26
In case it helps anyone else, as @FridayPush pointed out, I used Project Name instead of Project ID
– blueether
Nov 20 '18 at 22:26
In case it helps anyone else, as @FridayPush pointed out, I used Project Name instead of Project ID
– blueether
Nov 20 '18 at 22:26
add a comment |
1 Answer
1
active
oldest
votes
You're attempting to use the project name 'aqmon' in your commands, but your project is actually 'aqmon-223120'.
Thank you, been staring at the screen for too long
– blueether
Nov 20 '18 at 22:07
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%2f53402139%2ferror-gcloud-iot-devices-create-permission-denied%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You're attempting to use the project name 'aqmon' in your commands, but your project is actually 'aqmon-223120'.
Thank you, been staring at the screen for too long
– blueether
Nov 20 '18 at 22:07
add a comment |
You're attempting to use the project name 'aqmon' in your commands, but your project is actually 'aqmon-223120'.
Thank you, been staring at the screen for too long
– blueether
Nov 20 '18 at 22:07
add a comment |
You're attempting to use the project name 'aqmon' in your commands, but your project is actually 'aqmon-223120'.
You're attempting to use the project name 'aqmon' in your commands, but your project is actually 'aqmon-223120'.
answered Nov 20 '18 at 22:06
FridayPush
60717
60717
Thank you, been staring at the screen for too long
– blueether
Nov 20 '18 at 22:07
add a comment |
Thank you, been staring at the screen for too long
– blueether
Nov 20 '18 at 22:07
Thank you, been staring at the screen for too long
– blueether
Nov 20 '18 at 22:07
Thank you, been staring at the screen for too long
– blueether
Nov 20 '18 at 22:07
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f53402139%2ferror-gcloud-iot-devices-create-permission-denied%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
In case it helps anyone else, as @FridayPush pointed out, I used Project Name instead of Project ID
– blueether
Nov 20 '18 at 22:26