I accidentally removed the App Engine default service account (account in the appspot.gserviceaccount.com domain) from the IAM and Administration > Service Accounts and IAM and Administration > IAM in GCP.
I would like to restore my service account because I can no longer use any services related to GAE, but I have not been able to restore it properly.
Could you give me some advice on how to restore it?
The following are some of the restoration methods you have tried and the results:
We tried to restore two patterns by referring to the following sites.
Restoring the Google Cloud Default Service Account?
https://qiita.com/v-o-v/items/cc036061d153aa1210cc
Google App Engine Deploy Error Code 9
https://stackoverflow.com/questions/44676231/google-app-engine-deploy-error-code-9
https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps/repair
Restoring a Deleted Default Service Account
https://cloud.google.com/appengine/docs/flexible/python/access-control?hl=JA#repair-service-account
https://cloud.google.com/sdk/gcloud/reference/beta/app/repair?hl=JA
】How to restore using repair API of REST APII
Executed Commands
gcloud auth application-default login
gcloud auth application-default print-access-token
curl-X POST-H"Content-Type:application/json"-H"Authorization:Bearer ya2...YkZ"https://appengine.googleapis.com/v1/apps/ {project-id}:repair
[Curl Response]
HTTP/2200
{
"name": "apps/{project-id}/operations/34b...845",
"metadata": {
"@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
"method": "google.appengine.v1.Applications.RepairApplication",
"insertTime": "2019-01-08T01:19:48.709Z",
"user": "{email}",
"target": "apps/{project-id}"
}
}
[Results]
Unable to verify the creation of App Engine default service account on IAM and Management > IAM and Management > IAM
】How to restore using gcloud command を
Executed Commands
gcloud config set project {project-id}
gcloud beta app repair
Last Command Results
Waiting for operation [apps/{project-id}/operations/047...3ad] to complete...failed.
Repairing the app [{project-id}]...failed.
ERROR: (gcloud.beta.app.repair) Error Response: [13] An internal error occurred while sensing the default service account exists.
[Results]
Unable to verify the creation of App Engine default service account on IAM and Management > IAM and Management > IAM
I will answer because it was exactly the same.
As shown in the issue below, you said that it was being handled as a known issue as of 1/8th, but there seems to be no progress as of 1/30th, so I think we have no choice but to recreate the project.
This is known issue, and engineering is already working towers a fix. No estimated time to resolution has been set. Meanwhile, you may follow developments in this thread.
see: https://issuetracker.google.com/issues/122163562
F.Y.I. By the way, when I asked a question on the gcpug rack, kind people told me in seconds.
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
578 Understanding How to Configure Google API Key
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.