Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,519 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you