uploading an object into the cloud storage bucket.

0 votes
How do I upload an object into the Cloud storage Bucket?
Oct 23 in GCP by Sam
• 4,330 points
36 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.

answered Oct 23 by Sirajul
• 40,980 points

Related Questions In GCP

0 votes
1 answer
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 23 in GCP by Sirajul
• 40,980 points
13 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,980 points
33 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,980 points
94 views
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 24 in GCP by Sirajul
• 40,980 points
21 views