published on Wednesday, Apr 29, 2026 by pulumiverse
published on Wednesday, Apr 29, 2026 by pulumiverse
The scaleway.object.Item resource allows you to create and manage objects for Scaleway Object storage.
Refer to the dedicated documentation for more information on Object Storage objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
import * as std from "@pulumi/std";
const someBucket = new scaleway.object.Bucket("some_bucket", {name: "some-unique-name"});
const someFile = new scaleway.object.Item("some_file", {
bucket: someBucket.id,
key: "object_path",
file: "myfile",
hash: std.filemd5({
input: "myfile",
}).result,
});
import pulumi
import pulumi_std as std
import pulumiverse_scaleway as scaleway
some_bucket = scaleway.object.Bucket("some_bucket", name="some-unique-name")
some_file = scaleway.object.Item("some_file",
bucket=some_bucket.id,
key="object_path",
file="myfile",
hash=std.filemd5(input="myfile")["result"])
package main
import (
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/object"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
someBucket, err := object.NewBucket(ctx, "some_bucket", &object.BucketArgs{
Name: pulumi.String("some-unique-name"),
})
if err != nil {
return err
}
invokeFilemd5, err := std.Filemd5(ctx, map[string]interface{}{
"input": "myfile",
}, nil)
if err != nil {
return err
}
_, err = object.NewItem(ctx, "some_file", &object.ItemArgs{
Bucket: someBucket.ID(),
Key: pulumi.String("object_path"),
File: pulumi.String("myfile"),
Hash: invokeFilemd5.Result,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var someBucket = new Scaleway.Object.Bucket("some_bucket", new()
{
Name = "some-unique-name",
});
var someFile = new Scaleway.Object.Item("some_file", new()
{
Bucket = someBucket.Id,
Key = "object_path",
File = "myfile",
Hash = Std.Index.Filemd5.Invoke(new()
{
Input = "myfile",
}).Result,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.object.Bucket;
import com.pulumi.scaleway.object.BucketArgs;
import com.pulumi.scaleway.object.Item;
import com.pulumi.scaleway.object.ItemArgs;
import com.pulumi.std.StdFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var someBucket = new Bucket("someBucket", BucketArgs.builder()
.name("some-unique-name")
.build());
var someFile = new Item("someFile", ItemArgs.builder()
.bucket(someBucket.id())
.key("object_path")
.file("myfile")
.hash(StdFunctions.filemd5(Map.of("input", "myfile")).result())
.build());
}
}
resources:
someBucket:
type: scaleway:object:Bucket
name: some_bucket
properties:
name: some-unique-name
someFile:
type: scaleway:object:Item
name: some_file
properties:
bucket: ${someBucket.id}
key: object_path
file: myfile
hash:
fn::invoke:
function: std:filemd5
arguments:
input: myfile
return: result
Create Item Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Item(name: string, args: ItemArgs, opts?: CustomResourceOptions);@overload
def Item(resource_name: str,
args: ItemArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Item(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
key: Optional[str] = None,
content_type: Optional[str] = None,
content_base64: Optional[str] = None,
file: Optional[str] = None,
hash: Optional[str] = None,
content: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
sse_customer_key: Optional[str] = None,
storage_class: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
visibility: Optional[str] = None)func NewItem(ctx *Context, name string, args ItemArgs, opts ...ResourceOption) (*Item, error)public Item(string name, ItemArgs args, CustomResourceOptions? opts = null)type: scaleway:object:Item
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ItemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ItemArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ItemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ItemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ItemArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var itemResource = new Scaleway.Object.Item("itemResource", new()
{
Bucket = "string",
Key = "string",
ContentType = "string",
ContentBase64 = "string",
File = "string",
Hash = "string",
Content = "string",
Metadata =
{
{ "string", "string" },
},
ProjectId = "string",
Region = "string",
SseCustomerKey = "string",
StorageClass = "string",
Tags =
{
{ "string", "string" },
},
Visibility = "string",
});
example, err := object.NewItem(ctx, "itemResource", &object.ItemArgs{
Bucket: pulumi.String("string"),
Key: pulumi.String("string"),
ContentType: pulumi.String("string"),
ContentBase64: pulumi.String("string"),
File: pulumi.String("string"),
Hash: pulumi.String("string"),
Content: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
SseCustomerKey: pulumi.String("string"),
StorageClass: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Visibility: pulumi.String("string"),
})
var itemResource = new Item("itemResource", ItemArgs.builder()
.bucket("string")
.key("string")
.contentType("string")
.contentBase64("string")
.file("string")
.hash("string")
.content("string")
.metadata(Map.of("string", "string"))
.projectId("string")
.region("string")
.sseCustomerKey("string")
.storageClass("string")
.tags(Map.of("string", "string"))
.visibility("string")
.build());
item_resource = scaleway.object.Item("itemResource",
bucket="string",
key="string",
content_type="string",
content_base64="string",
file="string",
hash="string",
content="string",
metadata={
"string": "string",
},
project_id="string",
region="string",
sse_customer_key="string",
storage_class="string",
tags={
"string": "string",
},
visibility="string")
const itemResource = new scaleway.object.Item("itemResource", {
bucket: "string",
key: "string",
contentType: "string",
contentBase64: "string",
file: "string",
hash: "string",
content: "string",
metadata: {
string: "string",
},
projectId: "string",
region: "string",
sseCustomerKey: "string",
storageClass: "string",
tags: {
string: "string",
},
visibility: "string",
});
type: scaleway:object:Item
properties:
bucket: string
content: string
contentBase64: string
contentType: string
file: string
hash: string
key: string
metadata:
string: string
projectId: string
region: string
sseCustomerKey: string
storageClass: string
tags:
string: string
visibility: string
Item Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Item resource accepts the following input properties:
- Bucket string
- The name of the bucket, or its Terraform ID.
- Key string
- The path to the object.
- Content string
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - Content
Base64 string The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- Content
Type string - 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
- File string
- The name of the file to upload, defaults to an empty file.
- Hash string
- Hash of the file, used to trigger the upload on file change.
- Metadata Dictionary<string, string>
- Map of metadata used for the object (keys must be lowercase).
- Project
Id string projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- Region string
- The Scaleway region the bucket resides in.
- Sse
Customer stringKey - Customer's encryption keys to encrypt data (SSE-C)
- Storage
Class string - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - Dictionary<string, string>
- Map of tags.
- Visibility string
- Visibility of the object,
public-readorprivate.
- Bucket string
- The name of the bucket, or its Terraform ID.
- Key string
- The path to the object.
- Content string
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - Content
Base64 string The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- Content
Type string - 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
- File string
- The name of the file to upload, defaults to an empty file.
- Hash string
- Hash of the file, used to trigger the upload on file change.
- Metadata map[string]string
- Map of metadata used for the object (keys must be lowercase).
- Project
Id string projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- Region string
- The Scaleway region the bucket resides in.
- Sse
Customer stringKey - Customer's encryption keys to encrypt data (SSE-C)
- Storage
Class string - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - map[string]string
- Map of tags.
- Visibility string
- Visibility of the object,
public-readorprivate.
- bucket String
- The name of the bucket, or its Terraform ID.
- key String
- The path to the object.
- content String
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - content
Base64 String The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- content
Type String - 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
- file String
- The name of the file to upload, defaults to an empty file.
- hash String
- Hash of the file, used to trigger the upload on file change.
- metadata Map<String,String>
- Map of metadata used for the object (keys must be lowercase).
- project
Id String projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- region String
- The Scaleway region the bucket resides in.
- sse
Customer StringKey - Customer's encryption keys to encrypt data (SSE-C)
- storage
Class String - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - Map<String,String>
- Map of tags.
- visibility String
- Visibility of the object,
public-readorprivate.
- bucket string
- The name of the bucket, or its Terraform ID.
- key string
- The path to the object.
- content string
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - content
Base64 string The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- content
Type string - 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
- file string
- The name of the file to upload, defaults to an empty file.
- hash string
- Hash of the file, used to trigger the upload on file change.
- metadata {[key: string]: string}
- Map of metadata used for the object (keys must be lowercase).
- project
Id string projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- region string
- The Scaleway region the bucket resides in.
- sse
Customer stringKey - Customer's encryption keys to encrypt data (SSE-C)
- storage
Class string - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - {[key: string]: string}
- Map of tags.
- visibility string
- Visibility of the object,
public-readorprivate.
- bucket str
- The name of the bucket, or its Terraform ID.
- key str
- The path to the object.
- content str
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - content_
base64 str The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- content_
type str - 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
- file str
- The name of the file to upload, defaults to an empty file.
- hash str
- Hash of the file, used to trigger the upload on file change.
- metadata Mapping[str, str]
- Map of metadata used for the object (keys must be lowercase).
- project_
id str projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- region str
- The Scaleway region the bucket resides in.
- sse_
customer_ strkey - Customer's encryption keys to encrypt data (SSE-C)
- storage_
class str - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - Mapping[str, str]
- Map of tags.
- visibility str
- Visibility of the object,
public-readorprivate.
- bucket String
- The name of the bucket, or its Terraform ID.
- key String
- The path to the object.
- content String
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - content
Base64 String The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- content
Type String - 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
- file String
- The name of the file to upload, defaults to an empty file.
- hash String
- Hash of the file, used to trigger the upload on file change.
- metadata Map<String>
- Map of metadata used for the object (keys must be lowercase).
- project
Id String projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- region String
- The Scaleway region the bucket resides in.
- sse
Customer StringKey - Customer's encryption keys to encrypt data (SSE-C)
- storage
Class String - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - Map<String>
- Map of tags.
- visibility String
- Visibility of the object,
public-readorprivate.
Outputs
All input properties are implicitly available as output properties. Additionally, the Item resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Item Resource
Get an existing Item resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ItemState, opts?: CustomResourceOptions): Item@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
content: Optional[str] = None,
content_base64: Optional[str] = None,
content_type: Optional[str] = None,
file: Optional[str] = None,
hash: Optional[str] = None,
key: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
sse_customer_key: Optional[str] = None,
storage_class: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
visibility: Optional[str] = None) -> Itemfunc GetItem(ctx *Context, name string, id IDInput, state *ItemState, opts ...ResourceOption) (*Item, error)public static Item Get(string name, Input<string> id, ItemState? state, CustomResourceOptions? opts = null)public static Item get(String name, Output<String> id, ItemState state, CustomResourceOptions options)resources: _: type: scaleway:object:Item get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bucket string
- The name of the bucket, or its Terraform ID.
- Content string
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - Content
Base64 string The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- Content
Type string - 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
- File string
- The name of the file to upload, defaults to an empty file.
- Hash string
- Hash of the file, used to trigger the upload on file change.
- Key string
- The path to the object.
- Metadata Dictionary<string, string>
- Map of metadata used for the object (keys must be lowercase).
- Project
Id string projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- Region string
- The Scaleway region the bucket resides in.
- Sse
Customer stringKey - Customer's encryption keys to encrypt data (SSE-C)
- Storage
Class string - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - Dictionary<string, string>
- Map of tags.
- Visibility string
- Visibility of the object,
public-readorprivate.
- Bucket string
- The name of the bucket, or its Terraform ID.
- Content string
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - Content
Base64 string The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- Content
Type string - 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
- File string
- The name of the file to upload, defaults to an empty file.
- Hash string
- Hash of the file, used to trigger the upload on file change.
- Key string
- The path to the object.
- Metadata map[string]string
- Map of metadata used for the object (keys must be lowercase).
- Project
Id string projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- Region string
- The Scaleway region the bucket resides in.
- Sse
Customer stringKey - Customer's encryption keys to encrypt data (SSE-C)
- Storage
Class string - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - map[string]string
- Map of tags.
- Visibility string
- Visibility of the object,
public-readorprivate.
- bucket String
- The name of the bucket, or its Terraform ID.
- content String
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - content
Base64 String The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- content
Type String - 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
- file String
- The name of the file to upload, defaults to an empty file.
- hash String
- Hash of the file, used to trigger the upload on file change.
- key String
- The path to the object.
- metadata Map<String,String>
- Map of metadata used for the object (keys must be lowercase).
- project
Id String projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- region String
- The Scaleway region the bucket resides in.
- sse
Customer StringKey - Customer's encryption keys to encrypt data (SSE-C)
- storage
Class String - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - Map<String,String>
- Map of tags.
- visibility String
- Visibility of the object,
public-readorprivate.
- bucket string
- The name of the bucket, or its Terraform ID.
- content string
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - content
Base64 string The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- content
Type string - 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
- file string
- The name of the file to upload, defaults to an empty file.
- hash string
- Hash of the file, used to trigger the upload on file change.
- key string
- The path to the object.
- metadata {[key: string]: string}
- Map of metadata used for the object (keys must be lowercase).
- project
Id string projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- region string
- The Scaleway region the bucket resides in.
- sse
Customer stringKey - Customer's encryption keys to encrypt data (SSE-C)
- storage
Class string - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - {[key: string]: string}
- Map of tags.
- visibility string
- Visibility of the object,
public-readorprivate.
- bucket str
- The name of the bucket, or its Terraform ID.
- content str
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - content_
base64 str The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- content_
type str - 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
- file str
- The name of the file to upload, defaults to an empty file.
- hash str
- Hash of the file, used to trigger the upload on file change.
- key str
- The path to the object.
- metadata Mapping[str, str]
- Map of metadata used for the object (keys must be lowercase).
- project_
id str projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- region str
- The Scaleway region the bucket resides in.
- sse_
customer_ strkey - Customer's encryption keys to encrypt data (SSE-C)
- storage_
class str - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - Mapping[str, str]
- Map of tags.
- visibility str
- Visibility of the object,
public-readorprivate.
- bucket String
- The name of the bucket, or its Terraform ID.
- content String
- The content of the file to upload. Only one of
file,contentorcontentBase64can be defined. - content
Base64 String The base64-encoded content of the file to upload. Only one of
file,contentorcontentBase64can be defined.Note: Only one of
file,contentorcontentBase64can be defined.- content
Type String - 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
- file String
- The name of the file to upload, defaults to an empty file.
- hash String
- Hash of the file, used to trigger the upload on file change.
- key String
- The path to the object.
- metadata Map<String>
- Map of metadata used for the object (keys must be lowercase).
- project
Id String projectId) The ID of the project the bucket is associated with.Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify theprojectIdfor every child resource of the bucket, like objects. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.- region String
- The Scaleway region the bucket resides in.
- sse
Customer StringKey - Customer's encryption keys to encrypt data (SSE-C)
- storage
Class String - Specifies the Scaleway storage class (
STANDARD,GLACIER, orONEZONE_IA) used to store the object. - Map<String>
- Map of tags.
- visibility String
- Visibility of the object,
public-readorprivate.
Import
Objects can be imported using the {region}/{bucketName}/{objectKey} identifier, as shown below:
$ pulumi import scaleway:object/item:Item some_object fr-par/some-bucket/some-file
Important: The
projectIdattribute has a particular behavior with s3 products because the s3 API is scoped by project. If you are using a project different from the default one, you have to specify the project ID at the end of the import command.
$ pulumi import scaleway:object/item:Item some_object fr-par/some-bucket/some-file@xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
published on Wednesday, Apr 29, 2026 by pulumiverse
