Code update to set the default project and comment out steps 2 and 3.

Co-authored-by: jmhbnz <mail@jamesblair.net>
This commit is contained in:
Daljit Singh
2021-02-24 17:19:38 +13:00
parent 25007cca8d
commit f59b532d47
4 changed files with 12 additions and 6 deletions

View File

@ -69,7 +69,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-ci-cd"
export gcp_project_id="gitlab-gcp-ci"
# Create new project using a random project id
gcloud projects create $gcp_project_id
@ -120,6 +120,9 @@ Once we have a project we can create a new virtual machine. To create a virtual
Tangle the shell block below to a shell script by pressing *, b t* in emacs command mode:
#+begin_src bash :shebang #!/bin/bash :tangle 4-create-virtual-machine.sh
# Set default project
gcloud config set project "gitlab-gcp-ci"
# Ensure compute engine apis are enabled in the project
gcloud services enable compute.googleapis.com