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
• 6,260 points
723 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
• 59,230 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
• 59,230 points
1,133 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
• 59,230 points
1,284 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
• 59,230 points
2,773 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
• 59,230 points
1,855 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
• 59,230 points
4,306 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP