Skip to content

Commit 1c2b952

Browse files
committed
add and correct documentation
1 parent 62dfb95 commit 1c2b952

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

docs/resources/object.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ The following arguments are supported:
4949

5050
* `metadata` - (Optional) Map of metadata used for the object (keys must be lowercase).
5151

52+
* `content_type` - (Optional) The standard MIME type of the object's content (e.g., 'application/json', 'text/plain'). This specifies how the object should be interpreted by clients. See RFC 9110: https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type
53+
5254
* `tags` - (Optional) Map of tags.
5355

5456
* `sse_customer_key` - (Optional) Customer's encryption keys to encrypt data (SSE-C)

docs/resources/object_bucket_website_configuration.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,27 @@ Refer to the [dedicated documentation](https://www.scaleway.com/en/docs/object-s
1212
## Example Usage
1313

1414
```terraform
15-
resource "scaleway_object_bucket" "main" {
16-
name = "MyBucket"
15+
resource "scaleway_object_bucket" "test" {
16+
name = "my-bucket"
1717
acl = "public-read"
1818
}
1919
20-
resource "scaleway_object_bucket_website_configuration" "main" {
21-
bucket = scaleway_object_bucket.main.id
20+
resource scaleway_object "some_file" {
21+
bucket = scaleway_object_bucket.test.name
22+
key = "index.html"
23+
file = "index.html"
24+
visibility = "public-read"
25+
content_type = "text/html"
26+
}
27+
28+
resource "scaleway_object_bucket_website_configuration" "test" {
29+
bucket = scaleway_object_bucket.test.name
2230
index_document {
2331
suffix = "index.html"
2432
}
33+
error_document {
34+
key = "error.html"
35+
}
2536
}
2637
```
2738

0 commit comments

Comments
 (0)