create a service account on Gcloud.

0 votes
I need to create a service account for Gcloud manually. How do I go about doing this?
Oct 30, 2019 in GCP by anonymous
• 5,970 points
59 views

1 answer to this question.

0 votes

To create a service account, at minimum the user must be granted the Service Account Admin role (roles/iam.serviceAccountAdmin) or the Editor primitive role (roles/editor).

Execute the gcloud iam service-accounts create command to create a service account.

Command:

gcloud iam service-accounts create [SA-NAME] \
    --description "[SA-DESCRIPTION]" \
    --display-name "[SA-DISPLAY-NAME]"

The output is the service account:

Created service account [SA-NAME].

After you create a service account, grant one or more roles to the service account so that it can act on your behalf.

For more info check https://cloud.google.com/iam/docs/creating-managing-service-accounts#iam-service-accounts-create-gcloud

answered Oct 30, 2019 by Sirajul
• 55,750 points

Related Questions In GCP

0 votes
1 answer

How to create a routes-based cluster on Gcloud?

In Google Kubernetes Engine, clusters can be ...READ MORE

answered Oct 31, 2019 in GCP by Sirajul
• 55,750 points
117 views
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 55,750 points
208 views
0 votes
1 answer

How do I create a Google Cloud Platform (GCP) account?

In order to access the services provided ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 55,750 points
799 views
0 votes
1 answer

How do I create a VPCN (Virtual private cloud network) on Google Cloud?

You can connect various GCP resources to each ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 55,750 points
263 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Is it possible to restore a deleted service account on Gcloud?

It's sometimes possible to restore a deleted ...READ MORE

answered Oct 30, 2019 in GCP by Sirajul
• 55,750 points
717 views
0 votes
1 answer