Objects, Folders, and Files
  • 05 Apr 2023
  • PDF

Objects, Folders, and Files

  • PDF

Article Summary

Storing Objects in a Bucket

You can store objects in a bucket in Wasabi. An object can be any type of file—text, photo, video, etc. See Step 2 in Getting Started: Working with a Bucket.

Folders and Files

For information about folders and files, see Step 2 in Getting Started: Working with Folders and Files.

Public Access

Public access makes a folder available to any Internet user. This includes the ability to read objects from the bucket. Make sure there is no sensitive data in a folder that you make public.
By default, public use of a bucket, folder, or file is allowed only by certain paid (not trial) accounts. If your account does not have access to this feature, contact Wasabi Support at support@wasabi.com for assistance.

Public use of a folder or file is not allowed, by default, for trial accounts. Contact Wasabi Support at support@wasabi.com for assistance.

You can set public access in two ways:

Before defining a policy, you may want to review the Policies feature and Bucket Policy information.

The following is a sample policy that allows for public access of a folder. Change the bucket and folder name in the Resource section (arn:aws:s3:::bucket-public/myfolder, shown in the example below) to reflect your resource name.

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowPublicRead", "Effect": "Allow", "Principal": {
"AWS": ""
},
"Action": [ "s3:GetObject", "s3:ListBucket"
],
"Resource": "arn:aws:s3:::bucket-public/myfolder/*"
}]
}
Note that the follow are the general formats for ARNs:
arn:aws:service:account-id:resource-id
arn:aws:service:account-id:resource-type/resource-id
arn:aws:service:account-id:resource-type:resource-id

After defining the policy, you can access files directly via either of these URLs:

  • YOURBUCKETNAME.s3.wasabisys.com/FILENAME<FolderName>
  • s3.wasabisys.com/YOURBUCKET/<FolderName>/FILENAME



What's Next