Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

ERROR: (gcloud.auth.activate-service-account) Could not read json file /tmp/key-file.json: Expecting


I'm trying to configurate autodeploys with bitbucket pipeline and google cloud.
I have base yaml:

 - pipe: atlassian/google-cloud-storage-deploy:1.0.1
PROJECT: 'somexyz'
BUCKET: 'somexyz'
SOURCE: './test'

 And I have problem with access ;(
So I have cloud priv key


 I generated base64 from it  base64 -w 0 < file



I set on bitbucket secured key KEY_FILE with base64 value and I get 

ERROR: (gcloud.auth.activate-service-account) Could not read json file /tmp/key-file.json: Expecting

Any idea why? 

1 answer

1 accepted

0 votes
Answer accepted

I've found the answer :D
Ehh all generated key file should be converted to base64 and passed as secure bitbucket variable XD
Quite strange that when I created json structure only with private keys(key -> value) I didn't get info like no access or missing access data from gcloud but the same error as it was empty XD

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events