How to Auth to Google Cloud using Service Account in Python?

后端 未结 4 836
说谎
说谎 2020-12-14 02:02

Im trying to make a project that will upload google storage json file to BigQuery (just automate something that is done manually now).

And i\'d like to use \'service

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 02:21

    This is an old question however I want to add that you must create a new service account and not use an old one. A recent Google Cloud Next presentation on security stated that there is no guarantee that the default service account will exist in future, and it could be removed at any time (or its available permissions changed), so none of your applications should depend on it. Also I've found that there are potential issues with authentication when using the default service account and creating a new one is more likely to allow the control you need to successfully authenticate.

    Refer to the following YouTube presentation from 11mins 10s in:

    https://youtu.be/ZQHoC0cR6Qw?t=670

提交回复
热议问题