Skip to content

Instantly share code, notes, and snippets.

@serboox
Created March 27, 2019 09:13
Show Gist options
  • Save serboox/96e534557c6df0dfa3e1820b0ff5c246 to your computer and use it in GitHub Desktop.
Save serboox/96e534557c6df0dfa3e1820b0ff5c246 to your computer and use it in GitHub Desktop.
Create instance in GCP
$ brew cask install google-cloud-sdk
$ gcloud compute instances create reddit-app-2 \
--boot-disk-size=10GB \
--image-family ubuntu-1604-lts \
--image-project=ubuntu-os-cloud \
--machine-type=g1-small \
--tags puma-server \
--metadata-from-file startup-script=install.sh \
--restart-on-failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment