Skip to navigationSkip to main contentSkip to footerScaleway Docs

How to manage object visibility

Object visibility specifies whether your object is visible to others or not, independently from bucket visibility.

Before you start

To complete the actions presented below, you must have:

Note

All objects are private by default, even if they are in a public bucket. A private file in a public bucket cannot be accessed publicly.

Manage the visibility of a single object

  1. Click Object Storage in the Storage section of the side menu. The list of your buckets displays.
  2. Click the name of your bucket. A list of your objects displays.
  3. Click more icon next to the selected object name.
  4. Click Visibility. A pop-up appears.
  5. Check Public or Private according to your preference.
  6. Click Update object visibility to confirm.
Tip

If you upload a file using the CLI, you can make it public by using the --acl public-read parameter. However, bucket policies take precedence over ACLs.

Manage the visibility of multiple objects

You can manage the visibility of multiple objects at a time using a bucket policy as shown below. By allowing GetObject operations to everyone, the desired objects can be accessed by any person with the link to the object.

{
  "Id": "object-visibility",
  "Version": "2023-04-17",
  "Statement": [
    {
      "Sid": "make-objects-visible",
      "Principal": "*",
      "Action": [
        "s3:GetObject"
      ],
      "Effect": "Allow",
      "Resource": [
        "my-bucket/public-objects"
        ]
    },
  ]
}
Still need help?

Create a support ticket
No Results