I am launching an instance on GCP using gcloud compute
and specifying the URL of my script using the metadata param. The script fails to run, when I check the metadata, the script url is there. The logs have no mention of any errors.
When I sudo -i
and copy the script down from the bucket and execute, it runs fine.
Instance is running Ubuntu 18.04. Any ideas?