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 User" and "BigQuery Data Editor" roles.

step-5.jpg

Step 6. Click ‘Continue’ to move on.

step-6.jpg

Step 7. In the section, ‘Grant users access to this service account’ click ‘Create key’.

step-7.jpg

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

step-8.jpg

Step 9. Click ‘Create’ to finish setting up a key.

Step 10. And finally, click 'Done' to create your new service account.

You have now created a GCP service account with 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.