HarshR
HarshR

Reputation: 85

What is the cost of having a Google Cloud Storage bucket with no data in it?

I was going through https://cloud.google.com/storage/docs/storage-classes. It is showing the price of different storage classes in per GB per Month. Does the empty bucket doesn't cost you anything, otherwise what will be the charges?

Upvotes: 2

Views: 9702

Answers (3)

guillaume blaquiere
guillaume blaquiere

Reputation: 75745

Read carefully the pricing. 0 Gb doesn't mean free. If you create/delete a lot of empty file for keeping state or something else, your are also charge of Class A operation. Of course, when the file size are not null, these fee are invisible, but if you misuse the service (use it instead a database), you will be charged!

Upvotes: 1

Brandon Yarbrough
Brandon Yarbrough

Reputation: 38379

Creating a GCS bucket is a Class A operation, which means you'll be charged up to 5-10 cents for every 10,000 buckets you create. There is not a charge for the buckets existing, and the buckets themselves can also be deleted for free (although their may be a charge for deleting some of the objects inside them, such as very new coldline objects).

Therefore buckets are very, very cheap for any reasonable number of buckets. That said, there are quotas and such around their creation. Creating a massive number of them is usually not the best design.

Upvotes: 1

Chris32
Chris32

Reputation: 4961

As you can see in the Cloud Storage pricing documentation there is a free tier of 5 Gb. So, having an empty bucket will have no fee.

Upvotes: 4

Related Questions