Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting started with gcutil and Compute Engine: Error: The resource 'projects/<project-id>' was not found

I am attempting to get up and running with Google Compute Engine and am following the getting started/hello world tutorial. After installing gcutil (running OSx) and Authenticating to Google Compute Engine the instruction is to pass the following command

$ gcutil getproject --project=<project-id> --cache_flag_values

However the following error message is returned

Error: The resource 'projects/<project-id>' was not found

Where project-id is the id of the project authenticated earlier. If I then try to execute any of the following commands in the tutorial (but including the project-id because cashing the value failed) e.g.

$ gcutil addfirewall http2 --project=<project-id> --description="Incoming http allowed." --allowed="tcp:http"

The same error gets returned.

I am working in the $HOME directory (the same directory that contains the gcutil-1.8.0 folder).

Could someone please tell me why I'm getting the projects not found error, and if possible how to overcome it?

like image 499
user714852 Avatar asked Mar 24 '23 18:03

user714852


2 Answers

Visit your project's "Compute Engine" page once, then run the command again:

$ gcutil getproject --project=<project-id> --cache_flag_values

for me. it works.

like image 68
user2505719 Avatar answered Apr 17 '23 09:04

user2505719


You must first enable billing in order to use Compute Engine.

https://console.developers.google.com/billing

like image 33
Majal Avatar answered Apr 17 '23 10:04

Majal