How to create a Service Account in the GCP Project

What is a Service Account

A Service Account is a special type of account within your Google Cloud Platform (GCP) Project that is used by virtual machines or an application, instead of an individual end-user. Like a regular account, a Service account has assigned roles and permissions, access keys, billing, and so on.

Follow all steps below to create your GCP service account to provide access to some sources in By-request pipelines.

Create a GCP service account

Follow the procedure below to create a service account.

Step 1. Go to the webpage https://console.cloud.google.com and select (or create) your Project in the top menu bar.

step-1.jpg

Step 2. Browse to section IAM & Admin -> Service Accounts. Here you will see a list of current service accounts.

step-2.jpg

Step 3. Click ‘+ CREATE SERVICE ACCOUNT’.

Important GCP users with iam.serviceAccounts.create and iam.serviceAccounts.list permissions can create service accounts.

step-3.jpg

Step 4. Name your service account and click ‘Create’.

step-4.jpg

Step 5. In the section, ‘Grant this service account access to the project’ add "BigQuery Admin" and "BigQuery Data Editor" roles.

step-5.jpg

Step 6. Click ‘Continue’ to move on.

step-6.jpg

Step 7. Skip grant user access to this service and click Done.

step-7-new.png

Step 8. Choose the account you just created.

step-8-new.png

Step 9. Go to tab Key and click Add key → Create new key.

step-9-new.png

Step 10. In the new pop-up select ‘JSON’ and click ‘Create’. The key is generated and placed in a JSON file.

step-10-new.png

You have now created a GCP service account with the necessary roles, as well as a service account key in JSON format.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.