I have an existing, already configured VM on Google Cloud Platform. It was created without a startup script, but I\'d like to add one now.
How do I add it from the conso
You can add a startup script to an already created VM by creating a new custom metadata field. Follow these steps:
startup-script
.Paste your startup script into the value field. Don't forget the shebang. Here's an example of a valid script.
#! /bin/bash
apt-get update
apt-get install -y apache2
cat < /var/www/index.html
Hello World
This page was created from a simple startup script!
EOF