Create a Service Account and Private Key

Follow these steps:

  1. In the project dashboard, from the left navigation menu, select IAM & Admin, followed by Service Accounts.
  2. Click CREATE SERVICE ACCOUNT. The Service Accounts screen opens.
  3. Enter a Service account name. When you enter the Service account name, the corresponding Service account ID is auto populated in the Service account ID text box.
  4. Keep it as is or modify it as per your requirement.
  5. Optionally, enter the Service account description.
  6. Note down the Email address displayed on the screen, then click CREATE AND CONTINUE.
  7. Under “Grant this service account access to project”, click select a role.
  8. In the filter text box start typing the role that you created earlier and click to select the role.
  9. For more information, see Configure IAM Granular Permissions for Service Accounts with VSB to Google Cloud.
  10. Click CONTINUE.
  11. Skip the Grant users access to this service account step and do not input any value in this field.
  12. Click DONE. Now the landing page with service accounts will list the account that was created.
  13. Click the Email. The Service account details tab is listed.
  14. Select the KEYS tab.
  15. Click ADD KEY followed by Create new key.
  16. In the Create private key screen, select JSON as the key type, and click CREATE.
  17. A JSON key file is downloaded to your downloads folder. This JSON file will be used in UDP in the Add cloud account wizard for GCP.