Reputation: 41
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 ?
Upvotes: 4
Views: 1958
Reputation: 1365
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.
Upvotes: 1
Reputation: 327
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!
Upvotes: 3
Reputation: 559
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.
Upvotes: 0