Set Scaleway bucket website configuration (full replace)
scaleway_s3_put_bucket_websiteConfigure a Scaleway S3 bucket to serve a static website by specifying the index document and optional error document. Requires explicit confirmation to enable the public HTTP endpoint.
Instructions
Configure the bucket for static-website serving (index document, optional error document). FULL-REPLACE. Requires confirm=true because this publishes an HTTP website endpoint for the bucket. The website endpoint follows Scaleway's s3-website..scw.cloud naming - check the console bucket page for the exact URL; anonymous website access on Scaleway additionally depends on the bucket's visibility (see scaleway_s3_set_bucket_visibility).
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 | Yes | Must be explicitly true. | |
| error_document | No | Error document key, e.g. 'error.html'. Omit for none. | |
| index_document | Yes | Index document suffix, e.g. 'index.html'. |