Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

In the GCS GCE Challenge lab, can you manually change the log_bucket_metadata_name?

For this part, is it possible to replace "lab-logs-bucket" with "mychallengebucketname" (not in the gs:// format? Why does it need to be in the key-value attribute format?

Metadata should be set in the "lab-logs-bucket" attribute using the "gs://mybucketname/" format.



worker_log_bucket=$(curl -H "Metadata-Flavor: Google" "${log_bucket_metadata_url}")

2 Answers

"lab-logs-bucket" is hard coded in startup script as a metadata key. What you need to provide is the bucket  (gs://mybucketname/) you created as a value for the instance to retrieve from metadata list. So you should not replace it.

In my lab I set metadata lab-logs-bucket=gs://jay-startup The key was lab-logs-bucket. The value was bucket name including gs. You can pass the bucket name as any key. For example mybucket=gs://jay-startup . This would require modifying the startup script to look for value of that key mybucket.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?