Secret Manager - Project not found

55 views
Skip to first unread message

Marwan abdel moneim

unread,
Jan 31, 2020, 7:55:05 AM1/31/20
to google-appengine-go
I use Go, and the new Secret Manager, and have the 'Secret manager admin' role enabled. But I receive the following error when calling `CreateSecret`:

rpc error: code = NotFound desc = Project 'project-id' not found.. .                                                              
 failed to create secret
: rpc error: code = NotFound desc = Project 'project-id' not found..

Marwan abdel moneim

unread,
Jan 31, 2020, 7:58:48 AM1/31/20
to google-appengine-go
Also, I already enabled the Secret Manager API

Marwan abdel moneim

unread,
Jan 31, 2020, 8:20:43 AM1/31/20
to google-appengine-go
I added 'project/' prefix to the project id, and now I get a different error:

rpc error: code = InvalidArgument desc = Resource ID [projects/project-id] is not in a valid format..
failed to add secret version
: rpc error: code = InvalidArgument desc = Resource ID [projects/project-id] is not in a valid format.



On Friday, January 31, 2020 at 2:55:05 PM UTC+2, Marwan abdel moneim wrote:

Marwan abdel moneim

unread,
Jan 31, 2020, 8:43:49 AM1/31/20
to google-appengine-go
Solved.

So the problem was getting the 'parent' right.
Read the comments carefully here 


On Friday, January 31, 2020 at 2:55:05 PM UTC+2, Marwan abdel moneim wrote:
Reply all
Reply to author
Forward
0 new messages