How Can I Make a Bucket or a Folder inside a Bucket Public?
    • 28 Aug 2024
    • 1 Minute to read
    • PDF

    How Can I Make a Bucket or a Folder inside a Bucket Public?

    • PDF

    Article summary

    WARNING: MAKING A BUCKET PUBLIC MEANS THAT ANYONE ON THE INTERNET CAN SEE YOUR FILES. MAKE SURE THERE IS NO SENSITIVE DATA IN A BUCKET THAT YOU MAKE PUBLIC

    Making an entire Bucket public:

    Making an entire bucket public is possible in Wasabi via the use of Bucket Policies by following the procedure below.

    1. In the Wasabi Management Console, click on the Storage tab on top of the page to bring up the file manager.

    2. Select the bucket you want to make public and select 'settings' in the drop-down menu from the requisite buckets action column

    3. click on the 'Policies' tab to bring up the policy editor.

    4. enter the following bucket policy: replacing the Resource arn:aws:s3:::YOURBUCKET/* with the resource listed at the top of the page.

    {
    "Version": "2012-10-17",
    "Statement": [{
    "Sid": "AllowPublicRead",
    "Effect": "Allow",
    "Principal": {
    "AWS": "*"
    },
    "Action": [
    "s3:GetObject",
    "s3:GetObjectVersion"
    ],
    "Resource": "arn:aws:s3:::YOURBUCKET/*"
    }]
    }
    1. Click save

    You can now access the files directly via url: either YOURBUCKETNAME.s3.wasabisys.com/FILENAME or s3.wasabisys.com/YOURBUCKET/FILENAME

    Making a folder inside a Bucket public: 

    Making a folder inside a bucket public is possible in Wasabi via the use of Bucket Policies by following the procedure below.

    1. In the Wasabi Management Console, click on the Storage tab on top of the page to bring up the file manager.

    2. Select the bucket you want to make public and select 'settings' in the drop-down menu from the requisite buckets action column

    3. click on the 'Policies' tab to bring up the policy editor.

    4. enter the following bucket policy: replacing the Resource arn:aws:s3:::YOURBUCKET//* with the resource listed at the top of the page.

    {
    "Version": "2012-10-17",
    "Statement": [{
    "Sid": "AllowPublicRead",
    "Effect": "Allow",
    "Principal": {
    "AWS": "*"
    },
    "Action": [
    "s3:GetObject",
    "s3:GetObjectVersion"
    ],
    "Resource": "arn:aws:s3:::YOURBUCKET//*"
    }]
    }
    1. Click save
      You can now access the files directly via url: either YOURBUCKETNAME.s3.wasabisys.com//FILENAME or s3.wasabisys.com/YOURBUCKET//FILENAME

    Note: Wasabi has changed its default policy of allowing the ability to set public use of an object or bucket by default for paid accounts. By default, public use of a bucket, folder, or file is allowed only by certain paid (not trial) accounts. Please see Change in Ability to configure PUBLIC Access to objects and buckets for more details.


    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence