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:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- An Object Storage bucket
Manage the visibility of a single object
- Click Object Storage in the Storage section of the side menu. The list of your buckets displays.
- Click the name of your bucket. A list of your objects displays.
- Click more icon next to the selected object name.
- Click Visibility. A pop-up appears.
- Check Public or Private according to your preference.
- Click Update object visibility to confirm.
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"
]
},
]
}
See Also
Still need help?Create a support ticket