gcloud Create Service Account

Learn how to create a Google Cloud service account using the gcloud CLI and REST API. This step-by-step guide covers setting roles, generating keys, and securing access for automated deployments.


goto 
      
            https://console.cloud.google.com/iam-admin/serviceaccounts/create
      
      
            
            
click create account, give the service account a name, id and description

click create account

            
            
assign roles, 

  owner or editor has the most priviledges
  
  viewer the least
  
            

in the list of service accounts, click the newly created one

goto to the keys tab

click 

add key -> create new key

choose json format

download box will pop