Create a Service Account and Private Key
Follow these steps:
- In the project dashboard, from the left navigation menu, select IAM & Admin, followed by Service Accounts.
- Click CREATE SERVICE ACCOUNT. The Service Accounts screen opens.
- 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.
- Keep it as is or modify it as per your requirement.
- Optionally, enter the Service account description.
- Note down the Email address displayed on the screen, then click CREATE AND CONTINUE.
- Under “Grant this service account access to project”, click select a role.
- In the filter text box start typing the role that you created earlier and click to select the role.
- For more information, see Configure IAM Granular Permissions for Service Accounts with VSB to Google Cloud.
- Click CONTINUE.
- Skip the Grant users access to this service account step and do not input any value in this field.
- Click DONE. Now the landing page with service accounts will list the account that was created.
- Click the Email. The Service account details tab is listed.
- Select the KEYS tab.
- Click ADD KEY followed by Create new key.
- In the Create private key screen, select JSON as the key type, and click CREATE.
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.