diff --git a/3-create-virtual-machine.sh b/3-create-virtual-machine.sh index d3430e3..1026dbc 100755 --- a/3-create-virtual-machine.sh +++ b/3-create-virtual-machine.sh @@ -2,7 +2,7 @@ -# Once we have a project we can create a new virtual machine. +# Once we have a project we can create a new virtual machine. To create a virtual machine we need to ensure compute engine apis are enabled. # Tangle the shell block below to a shell script by pressing *, b t* in emacs command mode: diff --git a/README.org b/README.org index fee0e80..698a223 100644 --- a/README.org +++ b/README.org @@ -57,7 +57,7 @@ Tangle the shell block below to a shell script by pressing *, b t* in emacs comm #+NAME: Create a new google cloud project #+begin_src bash :shebang #!/bin/bash :tangle 2-configure-gcp-project.sh # Create a project id based on date -export gcp_project_id="gitlab-gcp-"$(date +"%Y-%m-%d") +export gcp_project_id="gitlab-gcp-"$(date +"%s") # Create new project using a random project id gcloud projects create $gcp_project_id @@ -80,7 +80,7 @@ Tangle the shell block below to a shell script by pressing *, b t* in emacs comm gcloud services enable compute.googleapis.com # Create name for virtual machine based on date -export gcp_machine_name="gitlab-gcp-"$(date +"%Y-%m-%d") +export gcp_machine_name="gitlab-gcp-"$(date +"%s") # Create the new machine gcloud compute instances create $gcp_machine_name --zone australia-southeast1-a