Import GCP Account


I’m trying to import my account.json for a GCP service account as a shared secret. Is the right way to do this via shared secret under my account? I’m trying to use this service account in Terraform.


How do I get about accessing this from my pipeline? I found an example but it doesn’t seem to work when I run the following command.

  • echo $TEST > account.json

Here’s the example I’m trying to follow.

Hello and welcome to Codefresh community!

You don’t need to break the json to individual fields. Just copy/paste its contents to a single variable for the whole file.


Then in codefresh.yml you can just do

echo $ACCOUNT_JSON_CONTENT > /codefresh/volume/account.json

and your file is ready to be used. Let us know if that helps :slight_smile: