I have a fork of this repo GitHub - LinkedInLearning/introduction-to-terraform-on-google-cloud-platform-4506001: This is a repository for the LinkedIn Learning course Introduction to Terraform on Google Cloud Platform which I’ve updated to include my gcp project ID. I have the GOOGLE_CREDENTIALS variable set containing the key file I generated from creating a key in GCP. I’m getting the unable to parse credentials error when trying to run within terraform cloud.
more info:
Terraform v1.8.5
on linux_amd64
Initializing plugins and modules…
{“@level”:“info”,“@message”:“Terraform 1.8.5”,“@module”:“terraform.ui”,“@timestamp”:“2024-06-10T16:58:55.325407Z”,“terraform”:“1.8.5”,“type”:“version”,“ui”:“1.2”}
{“@level”:“info”,“@message”:“Plan: 0 to add, 0 to change, 0 to destroy.”,“@module”:“terraform.ui”,“@timestamp”:“2024-06-10T16:58:56.469577Z”,“changes”:{“add”:0,“change”:0,“import”:0,“remove”:0,“operation”:“plan”},“type”:“change_summary”}
{“@level”:“error”,“@message”:“Error: unable to parse credentials”,“@module”:“terraform.ui”,“@timestamp”:“2024-06-10T16:58:56.469855Z”,“diagnostic”:{“severity”:“error”,“summary”:“unable to parse credentials”,“detail”:“invalid character ‘"’ after object key:value pair”,“address”:“provider["registry.terraform.io/hashicorp/google"]”,“range”:{“filename”:“providers.tf”,“start”:{“line”:10,“column”:19,“byte”:140},“end”:{“line”:10,“column”:20,“byte”:141}},“snippet”:{“context”:“provider "google"”,“code”:“provider "google" {”,“start_line”:10,“highlight_start_offset”:18,“highlight_end_offset”:19,“values”:}},“type”:“diagnostic”}
Operation failed: failed running terraform plan (exit 1)
any ideas what could be wrong?