Set Scaleway bucket visibility (public/private)
scaleway_s3_set_bucket_visibilitySet a Scaleway S3 bucket to public-read for anonymous read access to all objects, or private to restrict access to the bucket owner only. Requires confirmation for public access.
Instructions
Set bucket visibility via canned ACL: 'public-read' grants the anonymous internet READ on ALL objects (the console's 'Public' setting) - requires confirm=true; 'private' restores owner-only access. Note Bucket Policies (scaleway_s3_put_bucket_policy) are the finer-grained mechanism - this tool is the coarse on/off switch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | Bucket name. | |
| region | No | Region to operate in. Defaults to the server's configured region (fr-par). | |
| confirm | No | Required true when visibility=public-read. | |
| visibility | Yes |