Jme Hsieh
Jme Hsieh

Reputation: 93

gcloud app deploy failed due to deleted staging bucket

I mis-deleted a bucket named staging.MYPROJ.appinfo.com on google cloud storage console, and now I can't deploy my AppEngine app.

When I run gcloud app deploy app.yaml, here is the error message:

ERROR: (gcloud.app.deploy) Error Response: [7] Insufficient permissions to create Google Cloud Storage bucket.
Details: [
  [
    {
      "@type": "type.googleapis.com/google.rpc.ResourceInfo",
      "resourceName": "staging.MYPROJ.appspot.com",
      "resourceType": "cloud storage bucket"
    }
  ]
]

So here are my questions:

  1. Why a deleted staging bucket prevents me from deploying the app?
  2. How to deploy my app now?

Upvotes: 2

Views: 1839

Answers (1)

Jme Hsieh
Jme Hsieh

Reputation: 93

As mentioned in gcloud app deploy --help:

The Google Cloud Storage bucket used to stage files associated with the deployment. If this argument is not specified, the application's default code bucket is used.

So, we need a bucket to stage files.

I end up creating a new bucket and running this command:

$ gcloud app deploy app.yaml --bucket=gs://my_new_bucket

Upvotes: 3

Related Questions