24

I understand project names can be changed however I don't see any method to change the project ID.

Is this possible using the gcloud shell perhaps if not in the UI?

Cv9
  • 343
  • 1
  • 2
  • 4
  • 1
    technically speaking, changing the ID would mean it's a new project... – Marc B Apr 29 '16 at 19:46
  • I looked into creating a new project with the correct name/ID then moving the instances/disks there. This doesn't seem possible though, any move as far as I can tell is between zones within a project - never to different projects. If I can't change an existing project's ID and I can't move things between projects, is it just stuck as is? – Cv9 Apr 29 '16 at 19:51
  • You can move (with great pain) resource between projects. There are a few methods, and they could all be helpful or not depending on your situation, simply search online and you'll find more than one detailed guide. Personally, with instances, I create images of the instances (or snapshots and then images if the machines can't be turned off) which are natively accessible from any other project **within my organisation** on GCP. – SimpleAnecdote Aug 25 '17 at 00:52

1 Answers1

18

You cannot change project ID.

You have an option to use a custom domain, e.g. www.myCompany.com, in which case projectID is something that only your internal code needs to know.

Andrei Volgin
  • 40,755
  • 6
  • 49
  • 58
  • Ok, thanks for validating this, greatly appreciated. – Cv9 Apr 29 '16 at 20:25
  • 4
    `Project ID`(s) not being able to be changed can impact your project by blocking some functionality, future or current, i.e at the time of writing, you cannot use HTTP triggers for *Cloud Functions* on the GCP platform if your project ID includes a colon: *"HTTP trigger type not available for `project ID`(s) containing the colon character."* ([GCP Documentation 1](https://cloud.google.com/functions/docs/calling/http); [GCP Documentation 2](https://cloud.google.com/functions/docs/deploying/filesystem#deploy_using_the_gcloud_tool)) – SimpleAnecdote Sep 05 '17 at 10:22