- Create a service account within the GCP project (terraform-svc).
- Create a new JSON key for the service account and save the file.
- Run the following command on the JSON file to format it correctly for TFC.
cat key.json | tr -s '\n' ' '
- Copy the output of step 3 into the GOOGLE_CREDENTIALS variable in the TFC workspace.
- Make sure to mark the variable as sensitive!
Created
December 6, 2022 14:47
-
-
Save clintcolding/13e43dc71e96e03dfe77c9a3b9d5b01d to your computer and use it in GitHub Desktop.
Creating GOOGLE_CREDENTIAL for Terraform Cloud
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment