Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to fetch object in Cloud Storage bucket

This post is similar to: https://www.googlecloudcommunity.com/gc/Infrastructure-Compute-Storage/Google-Cloud-backend-bucket-n...

But in this one, i have followed the below tutorial exactly as described in the docs:

https://cloud.google.com/load-balancing/docs/https/setup-global-ext-https-buckets#create_an_with_bac...

But i am still unable to access the objects.

My routing rules are as follows:

Routing rules
Hosts
Paths
Backend
All unmatched (default)	All unmatched (default)	cats	
*	/love-to-fetch/*	dogs	
*	All unmatched (default)	cats	

Backend
Backend buckets
1. cats
Storage bucket name
cat-bucket-test
Cloud CDN
Disabled
Edge security policy
None
2. dogs
Storage bucket name
dog-bucket-test
Cloud CDN
Disabled
Edge security policy
None

My frontend IP is `34.107.183.193`.

But when i access 34.107.183.193/love-to-fetch/dog.jpg OR 34.107.183.193/never-fetch/cat.jpeg, i only get the following error:

<Error>
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
</Error>

When i access just `34.107.183.193`, i get the following:

<ListBucketResult xmlns="http://doc.s3.amazonaws.com/2006-03-01">
<Name>cat-bucket-test</Name>
<Prefix/>
<Marker/>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>never-fetch/</Key>
<Generation>1724299186917683</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2024-08-22T03:59:46.918Z</LastModified>
<ETag>"d41d8cd98f00b204e9800998ecf8427e"</ETag>
<Size>0</Size>
</Contents>
<Contents>
<Key>never-fetch/cat.jpeg</Key>
<Generation>1724299204214544</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2024-08-22T04:00:04.216Z</LastModified>
<ETag>"603be4bf40ae47559b446501d13ffe1f"</ETag>
<Size>242448</Size>
</Contents>
</ListBucketResult>

What am i missing here please?

Solved Solved
2 1 198
1 ACCEPTED SOLUTION

1 REPLY 1