1 Answers
Yes, you could indeed hard-code the information in the script, but that would make the script harder to manage for use on more than one instance. As ben22 noted on your other post about this, the script and lab are set up this way so as to demonstrate this useful feature that you can use to manage your GCE instances. For example, what if you wanted to have two instances in a dev environment that write to a dev logs bucket, but ten instances in your prod environment that write to a prod logs bucket? You wouldn’t want to have a different script for dev than you have for prod–that would be bad (and decidedly non-12-factor; see "Config").
Cheers!
Mattias
Thanks @Mattias
No problem! 🙂