1 Answers
I think using the metadata in the startup script was simply to demonstrate that useful feature.
Indeed! And I added a few more thoughts about this on Senthil’s other post: https://acloud.guru/forums/gcp-certified-associate-cloud-engineer/discussion/-LqsZNL4vomTqQgC-8PA/-1755-access-token-for-gsutil?answer=-LrL30P_2udKEc2Faec4
Using the metadat option allows you to pass in dynamic data to your script. What if you had 100 VMs each with their own bucket? Would you write 100 seperate scripts?