Added create virtual machine section.

This commit is contained in:
2021-01-13 14:44:40 +13:00
parent d44bdcf07c
commit 029a535f52
3 changed files with 43 additions and 0 deletions

14
3-create-virtual-machine.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# Once we have a project we can create a new virtual machine.
# Tangle the shell block below to a shell script by pressing *, b t* in emacs command mode:
# Create name for virtual machine based on date
export gcp_machine_name="gitlab-gcp-"$(date +"%Y-%m-%d")
# Create the new machine
gcloud compute instances create $gcp_machine_name