Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

What If there is no pre-configured label with me when i am creating a bucket for the first time ?

I see we need to extract the label to a .json file from one bucket and we set the same label to a different bucket. I was wondering what if I am creating my first bucket from CLI and I don’t have a label format to be extracted ? Do I create a new .json file and set that for the bucket because I tried the command to change the labels on the bucket where labels weren’t assigned but change command didn’t work there and as far as I remember it gave a invalid syntax error there.

1 Answers

Hello!  I’m glad you asked.

I see we need to extract the label to a .json file from one bucket

Actually, you don’t need to, but it is an option.  You could definitely craft a json file however you’d like.

But in regards to the second part of your question, there’s no reason why a "change label" command shouldn’t work on a brand new bucket, so I’m guessing there was some sort of typo in the command you ran.  Could you please post both the command and the error message?  Thanks!

johnobia23

hi, I also tried to change the labels to the bucket where labels weren’t assigned with the change command but got an error message saying "CommandException: "label" command must specify a bucket". what do i do ?

Sign In
Welcome Back!

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

Get Started
Who’s going to be learning?