Google Cloud Storage(GCS) - 2

Google Cloud Storage(GCS) - 2

ยท

2 min read

In this lab we are going to grant access to our object, Plus public access and access through browser

Step 1 :- Click on your bucket. image.png

Step 2 :- Select your object and click on permission. image.png

Step 3 :- Click on grant access. image.png

Step 4 :- Give mail id to whom you want to grant access. image.png

Step 5 :- Under role, click Storage, followed by Storage Object Viewer. chrome_bUMmcHRAyz.gif

Step 6 :- You have granted access to your Authenticated user.

image.png

Step 7 :- To test whether the link works, go to incognito mode and sign up with granted email, It should work.

image.png

Now I want to give public access to my object, So that everyone in the world can view my image

chrome_3Lh54miY9J.gif

  • Click on grant access

image.png

  • Under New members enter allUsers. Under select a role, click Storage and then on Storage Object Viewer and Allow Public Access.

chrome_hOByYOj2QT.gif

  • Now the object is public because we gave our bucket publicly accessible because we wrote allUsers.

image.png

  • Click on your object and copy the link.

image.png

  • Paste the link into your incognito tab. The image should appear.

image.png

That's it, for now, we will continue further more in next blog.

Hope you liked it. Will see you on the next topic ๐Ÿ˜ƒ

Next Topic

bvakash.hashnode.dev/google-cloud-storagegc..

ย