From ab564e26db33dc0873d0bcab27bc0556cfc59ee8 Mon Sep 17 00:00:00 2001 From: Kent 'picat' Gruber Date: Fri, 17 Jul 2020 08:53:15 -0400 Subject: [PATCH] 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. --- terraform/gcp/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terraform/gcp/README.md b/terraform/gcp/README.md index 85736a91e..b94ddc387 100644 --- a/terraform/gcp/README.md +++ b/terraform/gcp/README.md @@ -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: