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 in GCP by anonymous
• 4,320 points
13 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 by Sirajul
• 38,820 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 in GCP by Sirajul
• 38,820 points
17 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 in GCP by Sirajul
• 38,820 points
45 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 in GCP by Sirajul
• 38,820 points
52 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 in GCP by Sirajul
• 38,820 points
31 views
0 votes
1 answer
0 votes
1 answer