I’m having a heck of a time listing the objects in a bucket. I created the bucket using a unique id. I cannot list the objects in that bucket.
There are clearly funny things going on depending on whether “virtual” buckets are used. I have been creating buckets not using virtual. This means that I have “my-space” that hosts a list of buckets.
However, when I use the s3cmd mb command I can only create new spaces on digital ocean. I do not prefer this approach.
I prefer a single space hosting multiple buckets where each bucket hosts multiple objects.
How do I do that?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hi there,
A Space in DigitalOcean is similar to an S3 bucket in AWS. Therefore, each Space can store multiple objects, but you cannot create a bucket within a Space. So, when you create a Space in DigitalOcean, you’re essentially creating a “bucket”.
If you want to organize objects within a Space, you can use a flat folder-like structure using prefixes (which are similar to “folders”) to group objects.
For example, let’s say you have a Space called my-space
, and you want to create “buckets” called bucket1
and bucket2
. Instead of creating actual buckets, you can create objects with the following keys (or prefixes):
bucket1/object1
bucket1/object2
bucket2/object1
bucket2/object2
This will give the appearance of having folders or buckets within a Space.
Hope that this helps!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.