Recover Cloud functions default service account with the undelete POST call

这一生的挚爱 提交于 2021-01-28 14:11:38

问题


I have used Google Cloud Functions for quite a long time, with no real authentication problem for now. Today I meet this error while deploying a new function

ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Bad Request], message=[Default service account 'PROJECT-ID@appspot.gserviceaccount.com' doesn't exist. Please recreate this account (for example by disabling and enabling the Cloud Functions API), or specify a different account.]

I tried several things :

  • disable/enable GCF API : no service account recovered
  • gcloud beta app repair reference here No default service account recovered
  • the undelete API POST call

If I understand well the current GCP features, using the last option is my best solution, but somehow I keep getting a 400 error

I found my unique-id in my log activity at the creation of the default service account

I really can't see where is the problem in the undelete API call and would be really thankful if you could help with it


回答1:


Thanks to @Maxim, I know now that my problem comes from the fact that the deleting of this service account happened more than 30 days ago. Which means that it has already been purged from the system and it's not recoverable anymore.

In case you meet this same kind of problem, please try out this link : https://cloud.google.com/iam/docs/creating-managing-service-accounts#undeleting_a_service_account




回答2:


I see three alternative ways in how to proceed here next:

  • Create a new project from scratch to work from.
  • File a support case via the support center.
  • Open a private issue by providing your project number in the following component.

I believe it's convenient in reaching out GCP Support for help at this stage, and recommend you to do so; seeing as you've attempted most if not all ways of Service Account recovery to no success.

On a last note, as for the latter option, the contents of the private issue will only be visible to you, and to the GCP Support staff (us). If you choose this option, please let me know when it's opened, and I'll start working on it as soon as possible.



来源:https://stackoverflow.com/questions/56473862/recover-cloud-functions-default-service-account-with-the-undelete-post-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!