Create User-Managed Service Account Using GCP Console

GCP Tutorials: Create Service Account using GCP Console. You can create service account using gcloud command line interface also.
Written by Paayi Tech |19-Oct-2020 | 0 Comments | 65 Views

 
This article, I will show you how to create a user-managed service account through the GCP console. But you can create a service account via the gcloud command tool also.
 
The first step to create the service account is to click on the top left burger bar and search for IAM & admin, and in that, you need to find Service accounts.  
Click on the Service account, and it will direct to the service account dashboard. 
 
create-service-account-in-gcp-click-IAM gcp tutorials
 
 
 
Click to create a new service account, as shown in the image below. 
 
create-service-account-in-gcp--in-service-account-click-create-service-account gcp account
 
 
 
Name that service account whatever you want. I am giving this a name called ‘paayi-key,’ provide id and description to that service account, as shown below in the Image. 
 
create-service-account-in-gcp add-name-and-description
 
 
 
Then click create. After clicking create, it will take us to the place where we need to give the proper role (service account permissions) to our service account. I will provide the project editor role to this terraform service account. This service account can do anything in this project after allotting this role to it. 
 
create-service-account-in-gcp-select-permissions
 
 
After that, I will click continue, and it will take us to the page where we need to add original users who can have access to this account. So, I will add myself to this account, and you do the same. 
 
create-service-account-in-gcp---add-people-account
 
 
 
Click on the newly created service account to create a private key inside it.
 
create-service-account-in-gcp---click-on-your-service-account
 
 
I will create a JSON key, and I will download the private key. 
 
create-service-account-in-gcp---create-new-key
 
 
It will ask me how you want your key types JSON or P12. I choose JSON in this and click create.
 
create-service-account---click-create-new-secret-key
 
 
 
The moment you click create, the key will start downloading like as shown below.
create-service-account-in-gcp---key-downloaded---step-9
 
 
 
If you look into your service account, the activated key will look like this.
create-service-account-in-gcp---key-looks-active---step-10
 
 
Now I upload this private key into the terraform Linux machine. Check the image below on how I uploaded the private key.  
 
The next step is to create a folder name ‘google’ in your compute engine and move your private key inside, as shown in the image below.  This step I will show you in the next article.
 
 
 





Login/Sign Up

Comments




Related Posts



© Copyright 2020, All Rights Reserved. paayi.com

This site uses cookies. By continuing to use this site or clicking "I Agree", you agree to the use of cookies. Read our cookies policy and privacy statement for more information.