58833/uploading-an-object-into-the-cloud-storage-bucket
Suppose you want to upload an image into the bucket:
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.
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!
No, you can't delete a cloud storage object ...READ MORE
There's rsync command that could be used ...READ MORE
Use the gsutil cp command to create a folder ...READ MORE
Use the gsutil iam ch command to give a ...READ MORE
Check that your credentials are correct. For ...READ MORE
If your browser downloads a zero byte ...READ MORE
You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE
This error indicates that you have not ...READ MORE
In order to serve objects through load ...READ MORE
Use the gsutil rm command: gsutil rm gs://[BUCKET_NAME]/[OBJECT_NAME] Where: [BUCKET_NAME] is the name ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.