Reputation: 1315
I' working with minio
and python
.
I looked on the API of creating new bucket:
https://docs.min.io/docs/python-client-api-reference.html#make_bucket
I can't understand what is the meaning of location
?
The description in the API (Region in which the bucket will be created.
) doesn't tell me much.
How can I use it? Is it a sub folder?
What is the right way to use the location value?
Upvotes: 1
Views: 6153
Reputation: 20052
No, it's not a sub folder.
When you create a bucket, you choose its name and the AWS Region to create it in. After you create a bucket, you can't change its name or Region.
Also, what you might find interesting, if you're using the AWS Console, that is shows all your buckets, in all regions, which might imply that S3
is a global service.
However, buckets exist in a specific region and you need to specify that region when you create a bucket.
Therefore, in minio
, by location
, they mean where you want to have your S3 backet end-point located. Full list of S3 service end-points is here.
So, basically, by setting location
you get to choose where to "place" your bucket.
Upvotes: 1