How to Create Google Cloud Storage Signed Urls on App Engine Python

前端 未结 3 945
南方客
南方客 2021-01-05 12:54

I couldn\'t find a simple example on how to implement Google Cloud Storage Signed Urls on Google App Engine with Python. Please write a step by step guide. :)

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-05 13:32

    I created this repo: https://github.com/voscausa/appengine-gcs-signed-url

    Using GAE Pyrthon app_identity.get_service_account_name() and app_identity.sign_blob() makes creating signed url's very easy, without using a PEM key. The app shows how to download a GCS file.

    But if you use the SDK to test the app, you have to use:

    1. --appidentity_email_address
    2. --appidentity_private_key_path

    because creating a signed url is not part of the GCS client.

提交回复
热议问题