Hosting static site from private storage bucket

Hi,

I’ve created an external HTTPS LB which connects to a private GCS bucket. There are no errors observed when saving the LB.

However, accessing the URL results in a 403 error like below.

I’ve gone through various tutorials but they all require a public GCS bucket. Is there a way to achieve this using a private GCS bucket?

The documentation doesn’t include a way to set up a Load Balancer with a private Cloud Storage bucket as the backend. However, by adding Cloud CDN to access the private bucket objects, you can work around this issue.

Can you elaborate on how your bucket objects are structured? You might want to instead organize your bucket to only contain objects intended to be publicly accessible, or to implement ACLs for each object in your website.

Hi,

Ended up making the bucket public. I’ll have a look at the CDN option in the future if the need to have private buckets exposed arises.

Thanks!