Skip to content

Instantly share code, notes, and snippets.

@BondAnthony
Created September 27, 2019 12:04
Show Gist options
  • Save BondAnthony/258fbd00a1520fd24afdf2e0fef5a64a to your computer and use it in GitHub Desktop.
Save BondAnthony/258fbd00a1520fd24afdf2e0fef5a64a to your computer and use it in GitHub Desktop.

Google Cloud Platform

Google Compute Engine

Just like other cloud providers Google allows for startup scripts. Once nice thing about GCE is you can easily restart your startup script for debugging reasons.

Login and run the following command to restart the startup script.

sudo google_metadata_script_runner --script-type startup --debug

Docs: https://cloud.google.com/compute/docs/startupscript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment