Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a maximum number of service accounts that a project can have in the google cloud platform?

I'd like to dynamically generate service accounts/clients and there is a possibility that I would generate a lot of them. Is there a maximum number of client ids / service accounts that a google cloud platform project can have?

like image 387
Alden Avatar asked Jan 21 '15 05:01

Alden


Video Answer


2 Answers

I know this is too late but came across this FAQ in Google cloud docs which answers this question as follows:

You can create 100 service accounts in a project. Contact your account manager if you need to create more than 100 service accounts in a project.

like image 106
Sudarshan Murthy Avatar answered Sep 29 '22 07:09

Sudarshan Murthy


I don't know of a limit on the number of service accounts, but there is a limit to the number of refresh tokens for a given service account:

There is a limit to the total number of refresh tokens that your service account can have at any one point in time. Currently, this limit is 600. If this limit is reached, Google Compute Engine will not be able to create an instance which requires a new refresh token, and you will get a SERVICE_ACCOUNT_TOO_MANY_TOKENS error. For example, if you have reached the refresh token limit, and you attempt to create an instance with a new, unique set {default, scope1, scope2, scope3, scope4), the action fails and you will receive the SERVICE_ACCOUNT_TOO_MANY_TOKENS error.

like image 31
Alexander Mohr Avatar answered Sep 29 '22 06:09

Alexander Mohr