uploading an object into the cloud storage bucket

0 votes
How do I upload an object into the Cloud storage Bucket?
Oct 24, 2019 in GCP by Sam
• 6,260 points
1,557 views

1 answer to this question.

0 votes

Suppose you want to upload an image into the bucket: 

  1. Right-click the image and save it somewhere on your computer, such as on the desktop.

    Note: If you are using Cloud Shell or a Compute Engine instance, download the image using wget https://cloud.google.com/storage/images/kitten.png.

  2. Use the gsutil cp command to copy the image from the location where you saved it to the bucket you created:

    gsutil cp Desktop/kitten.png gs://my-awesome-bucket

    If successful, the command returns:

    Copying file://Desktop/kitten.png [Content-Type=image/png]...
    Uploading   gs://my-awesome-bucket/kitten.png:       0 B/164.3 KiB
    Uploading   gs://my-awesome-bucket/kitten.png:       164.3 KiB/164.3 KiB

    You've just stored an object in your bucket.

Hope it works!!

If you want to become a professional Google Cloud Architect, Its recommended to go for the certification course first.

Thanks!

answered Oct 24, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
1 answer

Delete a cloud storage object that is in the locked, retention-enabled bucket.

No, you can't delete a cloud storage object ...READ MORE

answered Nov 18, 2019 in GCP by Sirajul
• 59,230 points

edited Sep 21, 2021 by Sarfaraz 3,294 views
0 votes
1 answer
0 votes
1 answer

How to copy an object to a folder in the bucket?

Use the gsutil cp command to create a folder ...READ MORE

answered Oct 24, 2019 in GCP by Sirajul
• 59,230 points
1,978 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, 2019 in GCP by Sirajul
• 59,230 points
3,984 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, 2019 in GCP by Sirajul
• 59,230 points
4,915 views
0 votes
1 answer
0 votes
1 answer

Deleting an object from a cloud storage bucket.

Use the gsutil rm command: gsutil rm gs://[BUCKET_NAME]/[OBJECT_NAME] Where: [BUCKET_NAME] is the name ...READ MORE

answered Oct 25, 2019 in GCP by Sirajul
• 59,230 points
1,956 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP