Create a service account
As a prerequisite for creating a credential, you must create a service account on GCP and generate a JSON key for that account.
|Service > Role||Description|
|Compute Engine > Compute Image User||This is required|
|Compute Engine > Compute Instance Admin (v1)||This is required|
|Compute Engine > Compute Network Admin||This is required|
|Compute Engine > Compute Security Admin||This is required|
|Storage > Storage Admin||This is required|
A user with an “Owner” role can assign roles to new and existing service accounts from IAM & admin > Service accounts, as presented in the following screenshots.
To create a new service account, navigate to IAM & admin > Service accounts, click on +Create service account and provide the following:
- Enter Service account name
- Under Role, select the roles mentioned above
- Select Furnish a new private key > JSON
For more information on creating a service account and generating a JSON key, refer to Google documentation.