How to set GOOGLE_APPLICATION_CREDENTIALS for Google Compute Engine?

前端 未结 3 735
难免孤独
难免孤独 2021-01-18 00:31

I have Google Compute Engine\'s Credentials file , renamed as key.json. The next step is to set the environment variable with name GOOGLE_APPLICATION_CREDENTIALS. But it say

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 01:03

    This question is satisfiable by a reading of the documentation. As of Mar. 15, 2016:

    The environment variable GOOGLE_APPLICATION_CREDENTIALS is checked. If this variable is specified it should point to a file that defines the credentials.

    The documentation explains more about how you can create such a file.

    As to how to set this in eclipse, it's an environment variable, and you should search the Eclipse documentation to see how to set environment variables for tasks you want to run.

提交回复
热议问题