I would like to create a bucket in the EU location in google cloud storage. How do I set that? The docs don't mention anything.
from google.cloud import storage
client = storage.Client(project=project_id)
client.create_bucket(bucket_name)
Creates a bucket in the US location by default.
bucket = Bucket(client, name='bucketname')
bucket.location = 'eu'
bucket.create()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With