Terraform Cloud and Google GCP credentials

How do i add Google GCP credentials as variables? The documentation only shows how to add the credentials using a file and it doesn’t tell me how to add and use the credentials in Terraform cloud.

From what i understand there are 2 options:

  1. Store the file in for example cloud storage (not sure why you want to do that?)
  2. Follow this guide: https://www.haigmail.com/2019/10/07/setting-up-google_credentials-for-terraform-cloud/