How to get compute engine service account using gcloud command?

# gcloud iam service-accounts list --filter="displayName:'Compute Engine default service account'" --format='value(email)'
285466277759-compute@developer.gserviceaccount.com
export COMPUTE_SVC_ACCOUNT=$(gcloud iam service-accounts list --filter="displayName:'Compute Engine default service account'" --format='value(email)')
  •  
  •  
  •  
  •  

Viet Luu has written 206 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply