Google App Engine deleted default GCS bucket. Is there a way to restore it?

淺唱寂寞╮ 提交于 2021-02-10 20:45:52

问题


I was deleting some files from the default bucket of my application and I accidentally deleted also the bucket itself using gsutil rm command.

Is there a way to restore/recreate/bring it back ? I would like to continue to use the free quota and not enable billing.

What I tried to do so far is that (but I'm not sure it is correct). I first enable billing just to re-create a bucket with the same name: xxx.appspot.com. In order to be able to do that I verified that I'm the owner of the domain. I setup the default acl to give my app OWNER access using the service account. Then I disabled the billing again.

Is the bucket considered like the default bucket create by app engine cloud storage integration and use the free quota tier ?


回答1:


Just login to your Cloud Console Dashboard, go to AppEngine and select settings then Create Default Bucket.

I deleted mine severally and recreated it again!




回答2:


No there is no way to restore a deleted bucket or object inside a bucket. DELETE operation comes under strong global consistency. Keep in mind that you can use Google Cloud Storage only after enabling billing for your project. It's not free.



来源:https://stackoverflow.com/questions/29328309/google-app-engine-deleted-default-gcs-bucket-is-there-a-way-to-restore-it

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