Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 917
Cristian Marastoni Avatar asked Sep 08 '25 14:09

Cristian Marastoni


2 Answers

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!

like image 163
DLastCodeBender Avatar answered Sep 10 '25 05:09

DLastCodeBender


It looks like the App Engine settings Cloud Console page no longer has functionality to restore the default GAE buckets. Instead you can perform the restore via the gcloud instructions below:

The default (<project_id>.appspot.com) and staging (staging.<project_id>.appspot.com) buckets can be recreated by a project Owner/Editor running gcloud beta app repair. The Google Container Registry (GCR) bucket (<region>.artifacts.<project_id>.appspot.com) will be recreated upon next app engine deployment or image push to GCR in that region.

like image 33
Thomas Burke Avatar answered Sep 10 '25 04:09

Thomas Burke