"Static" Google Cloud Storage is not available

I am currently structuring a web application to serve our database segments represented as html frames. I need to put static files of a Django application (like bootstrap) in a static file store in google cloud storage to render HTML elements correctly. However, when I try to create a bucket called "static", GCS responds with the following error:

Sorry, that name is not available. Please try a different one.

      

Not only that, it prevents me from accessing or changing the URI by displaying a "Forbidden" message when I try.

Does anyone know how to change this Google default setting? There is no documentation regarding this.

+3


source to share


1 answer


It seems that the bucket with the given name has already been created by someone else. You must choose a globally unique name.

The bucket names are in the same Google Cloud Storage namespace. As a consequence, each bucket name must be unique across the entire Google Cloud Storage namespace. If you try to create a bucket with the already accepted bucket name, Google Cloud Storage will respond with an error message.



Use a different name or use the default bucket. If your app was built after App Engine 1.9.0 was released, it should have a default GCS container named [your-app-id].appspot.com

. You can create your static files in this bucket and simulate the directory structure as follows.

[your-app-id].appspot.com/static/my-file-1

      

+5


source







All Articles