Skip to content

Learn how to upload a file to Google Cloud Storage Bucket using Signed URL (Python).

Notifications You must be signed in to change notification settings

PawanSenapati/Upload-a-file-to-GCS-bucket-using-Signed-URL-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Upload-a-file-to-GCS-bucket-using-Signed-URL-Python

Learn how to upload a file to Google Cloud Storage Bucket using Signed URL (Python).

1. Navigate to GCP Cloud Shell.
2. Clone this repository to your GCP console using (gcloud source repos clone [REPO_NAME] --project=[PROJECT_NAME])
3. Ensure that you have a GCS bucket in your GCP project.
4. Create a Service Account and a private key for the service account.
    https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating
5. Download the JSON file (say key.json) of the private key. Upload the key.json file to GCP console.
6. Replace the bucket name and the credential (i.e. path to key.json) in main.py.
7. Run command: python main.py

About

Learn how to upload a file to Google Cloud Storage Bucket using Signed URL (Python).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published