Fred A
Fred A

Reputation: 1764

Same bucket hosting static files at 2 different projects at Google Cloud Platform

As titled

Is it possible to have 2 same buckets (hosting static HTML files and the bucket name is this.bucket.com) at 2 different projects (say testing and prod)?

And if this is possible, how can i make it so that, if the URL is a testing URL, it will go to the bucket at testing project, and if its a PRO URL, it will redirect to the bucket at prod project.

Upvotes: 2

Views: 1005

Answers (1)

Christopher
Christopher

Reputation: 941

It's not possible to have 2 buckets of the same name, it must be globally unique. If the bucket name is already used somewhere else then you'll get an error message.

enter image description here

Upvotes: 4

Related Questions