June 2018
Intermediate to advanced
372 pages
8h 44m
English
We can run our own startup scripts from VM instances to perform automatic actions such as updating the system, and sending notifications and so on.

A startup script is specified using metadata keys through the metadata server and can be applied using the console or gcloud command line:
gcloud compute instances create example-instance --tags http-server
--metadata startup-script='#! /bin/bash
# Installs apache and a custom ...