Generate random project ID in tutorial command, change command order
Includes a link to the GCP docs for a project overview if the user is new to the platform.
This commit is contained in:
parent
c23bc0e93d
commit
0d9ad8a5f2
|
@ -93,16 +93,16 @@ gcloud init
|
|||
|
||||
## Create a New Project
|
||||
|
||||
Create a new GCP project with the following command:
|
||||
Generate a project ID with the following command:
|
||||
|
||||
```console
|
||||
gcloud projects create your-new-project-name
|
||||
export GOOGLE_PROJECT="nomad-gcp-$(cat /dev/random | head -c 5 | xxd -p)"
|
||||
```
|
||||
|
||||
Now export the project name as the `GOOGLE_PROJECT` environment variable:
|
||||
Using that project ID, create a new GCP [project](https://cloud.google.com/docs/overview#projects):
|
||||
|
||||
```console
|
||||
export GOOGLE_PROJECT="your-new-project-name"
|
||||
gcloud projects create $GOOGLE_PROJECT
|
||||
```
|
||||
|
||||
And then set your `gcloud` config to use that project:
|
||||
|
|
Loading…
Reference in New Issue