Is it possible to make the objects of a bucket publicly accessible?

0 votes
I have created a cloud storage bucket and have uploaded a few objects onto it. How do I make these objects publicly accessible?
Oct 23 in GCP by Sam
• 4,330 points
20 views

1 answer to this question.

0 votes

Yes, you can do it. Follow the steps below: 

  1. Use the gsutil acl ch command to grant all users read permission for the object stored in your bucket:

    gsutil acl ch -u AllUsers:R gs://my-awesome-bucket/kitten.png

    If successful, the command returns:

    Updated ACL on gs://my-awesome-bucket/kitten.png

    Now anyone can get your object.

  2. To remove this permission, use the command:

    gsutil acl ch -d AllUsers gs://my-awesome-bucket/kitten.png

    If successful, the command returns:

    Updated ACL on gs://my-awesome-bucket/kitten.png

    You have removed public access to this object.

answered Oct 23 by Sirajul
• 40,990 points
How do i give access to the cloud storage bucket to a specific user?

Related Questions In GCP

0 votes
1 answer

Is it possible to rename a project in GCP?

Yes, it is possible to rename your ...READ MORE

answered Sep 27 in GCP by Sirajul
• 40,990 points
42 views
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9 in GCP by Sirajul
• 40,990 points
34 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10 in GCP by Sirajul
• 40,990 points
105 views
0 votes
1 answer
0 votes
1 answer

Is it possible to require labels on creation of any of the GCP resources?

The labels are a simple way to group resources that are connected or related to others. For example you'll ...READ MORE

answered Nov 5 in GCP by anonymous
• 40,990 points
32 views