I am trying to use Google Storage for my Django application deployed in Compute Engine. To enable this I have to download a credentials.json in my console. I have made a new service account. However I do not see any download json for this credentials. How do you generate the json file?
You can click on the relevant service account in Cloud Console and create a new key from KEYS tab by clicking Add Key. Once you create the key, the JSON file will be downloaded.
Checkout the documentation for more information if you want to create keys programmatically.
As @Guillaume commented, if you are running your application in Google Cloud env, then you use Application Default Credentials.