published on Friday, Nov 13, 2026 by pulumiverse
published on Friday, Nov 13, 2026 by pulumiverse
The scaleway.account.Project resource allows you to create and manage the Projects of a Scaleway Organization.
Refer to the Organizations and Projects documentation and API documentation for more information.
By default, destroying a project that still contains resources fails. Set deleteWithResources to true to delete the project along with all the resources it contains, including resources not managed by Terraform. Deleting a project is permanent and cannot be undone.
Example Usage
Create a Scaleway Project
The following command allows you to create a project named project.
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const project = new scaleway.account.Project("project", {name: "project"});
import pulumi
import pulumiverse_scaleway as scaleway
project = scaleway.account.Project("project", name="project")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/account"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := account.NewProject(ctx, "project", &account.ProjectArgs{
Name: pulumi.String("project"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var project = new Scaleway.Account.Project("project", new()
{
Name = "project",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.account.Project;
import com.pulumi.scaleway.account.ProjectArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 project = new Project("project", ProjectArgs.builder()
.name("project")
.build());
}
}
resources:
project:
type: scaleway:account:Project
properties:
name: project
terraform {
required_providers {
scaleway = {
source = "pulumi/scaleway"
}
}
}
resource "scaleway_account_project" "project" {
lifecycle {
create_before_destroy = true
}
name = "project"
}
Create a Scaleway Project and delete all its resources on deletion
The following command allows you to create a project named myProject. Destroying this project will also delete all the resources it contains, including resources not managed by Terraform.
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const project = new scaleway.account.Project("project", {
name: "my_project",
deleteWithResources: true,
});
import pulumi
import pulumiverse_scaleway as scaleway
project = scaleway.account.Project("project",
name="my_project",
delete_with_resources=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/account"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := account.NewProject(ctx, "project", &account.ProjectArgs{
Name: pulumi.String("my_project"),
DeleteWithResources: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var project = new Scaleway.Account.Project("project", new()
{
Name = "my_project",
DeleteWithResources = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.account.Project;
import com.pulumi.scaleway.account.ProjectArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 project = new Project("project", ProjectArgs.builder()
.name("my_project")
.deleteWithResources(true)
.build());
}
}
resources:
project:
type: scaleway:account:Project
properties:
name: my_project
deleteWithResources: true
terraform {
required_providers {
scaleway = {
source = "pulumi/scaleway"
}
}
}
resource "scaleway_account_project" "project" {
lifecycle {
create_before_destroy = true
}
name = "my_project"
delete_with_resources = true
}
Use a project in provider configuration
If you want to use as default a project created in terraform you can use a temporary provider alias. This project can then be used to configure your default provider.
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const project = new scaleway.account.Project("project", {name: "my_project"});
const server = new scaleway.instance.Server("server", {
image: "ubuntu_jammy",
type: "PRO2-XXS",
});
import pulumi
import pulumiverse_scaleway as scaleway
project = scaleway.account.Project("project", name="my_project")
server = scaleway.instance.Server("server",
image="ubuntu_jammy",
type="PRO2-XXS")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/account"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/instance"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := account.NewProject(ctx, "project", &account.ProjectArgs{
Name: pulumi.String("my_project"),
})
if err != nil {
return err
}
_, err = instance.NewServer(ctx, "server", &instance.ServerArgs{
Image: pulumi.String("ubuntu_jammy"),
Type: pulumi.String("PRO2-XXS"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var project = new Scaleway.Account.Project("project", new()
{
Name = "my_project",
});
var server = new Scaleway.Instance.Server("server", new()
{
Image = "ubuntu_jammy",
Type = "PRO2-XXS",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.account.Project;
import com.pulumi.scaleway.account.ProjectArgs;
import com.pulumi.scaleway.instance.Server;
import com.pulumi.scaleway.instance.ServerArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 project = new Project("project", ProjectArgs.builder()
.name("my_project")
.build());
var server = new Server("server", ServerArgs.builder()
.image("ubuntu_jammy")
.type("PRO2-XXS")
.build());
}
}
resources:
project:
type: scaleway:account:Project
properties:
name: my_project
server:
type: scaleway:instance:Server
properties:
image: ubuntu_jammy
type: PRO2-XXS
terraform {
required_providers {
scaleway = {
source = "pulumi/scaleway"
}
}
}
resource "scaleway_account_project" "project" {
lifecycle {
create_before_destroy = true
}
name = "my_project"
}
resource "scaleway_instance_server" "server" {
lifecycle {
create_before_destroy = true
}
image = "ubuntu_jammy"
type = "PRO2-XXS"
}
Create Project Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);@overload
def Project(resource_name: str,
args: Optional[ProjectArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Project(resource_name: str,
opts: Optional[ResourceOptions] = None,
delete_with_resources: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None)func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: scaleway:account:Project
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "scaleway_account_project" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProjectArgs
- 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 ProjectArgs
- 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 ProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectArgs
- 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 projectResource = new Scaleway.Account.Project("projectResource", new()
{
DeleteWithResources = false,
Description = "string",
Name = "string",
OrganizationId = "string",
});
example, err := account.NewProject(ctx, "projectResource", &account.ProjectArgs{
DeleteWithResources: pulumi.Bool(false),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
})
resource "scaleway_account_project" "projectResource" {
lifecycle {
create_before_destroy = true
}
delete_with_resources = false
description = "string"
name = "string"
organization_id = "string"
}
var projectResource = new Project("projectResource", ProjectArgs.builder()
.deleteWithResources(false)
.description("string")
.name("string")
.organizationId("string")
.build());
project_resource = scaleway.account.Project("projectResource",
delete_with_resources=False,
description="string",
name="string",
organization_id="string")
const projectResource = new scaleway.account.Project("projectResource", {
deleteWithResources: false,
description: "string",
name: "string",
organizationId: "string",
});
type: scaleway:account:Project
properties:
deleteWithResources: false
description: string
name: string
organizationId: string
Project 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 Project resource accepts the following input properties:
- Delete
With boolResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - Description string
- The description of the Project.
- Name string
- The name of the Project.
- Organization
Id string organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.
- Delete
With boolResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - Description string
- The description of the Project.
- Name string
- The name of the Project.
- Organization
Id string organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.
- delete_
with_ boolresources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description string
- The description of the Project.
- name string
- The name of the Project.
- organization_
id string organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.
- delete
With BooleanResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description String
- The description of the Project.
- name String
- The name of the Project.
- organization
Id String organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.
- delete
With booleanResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description string
- The description of the Project.
- name string
- The name of the Project.
- organization
Id string organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.
- delete_
with_ boolresources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description str
- The description of the Project.
- name str
- The name of the Project.
- organization_
id str organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.
- delete
With BooleanResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description String
- The description of the Project.
- name String
- The name of the Project.
- organization
Id String organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
- created_
at string - The creation time of the Project.
- id string
- The provider-assigned unique ID for this managed resource.
- srn string
- The Scaleway Resource Name (SRN) of the project.
- updated_
at string - The last update time of the Project.
- created_
at str - The creation time of the Project.
- id str
- The provider-assigned unique ID for this managed resource.
- srn str
- The Scaleway Resource Name (SRN) of the project.
- updated_
at str - The last update time of the Project.
Look up Existing Project Resource
Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
delete_with_resources: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
srn: Optional[str] = None,
updated_at: Optional[str] = None) -> Projectfunc GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)resources: existingProject: type: scaleway:account:Project get: id: ${id}import {
to = scaleway_account_project.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state ProjectState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ProjectState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state ProjectState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state ProjectState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Created
At string - The creation time of the Project.
- Delete
With boolResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - Description string
- The description of the Project.
- Name string
- The name of the Project.
- Organization
Id string organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.- Srn string
- The Scaleway Resource Name (SRN) of the project.
- Updated
At string - The last update time of the Project.
- Created
At string - The creation time of the Project.
- Delete
With boolResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - Description string
- The description of the Project.
- Name string
- The name of the Project.
- Organization
Id string organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.- Srn string
- The Scaleway Resource Name (SRN) of the project.
- Updated
At string - The last update time of the Project.
- created_
at string - The creation time of the Project.
- delete_
with_ boolresources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description string
- The description of the Project.
- name string
- The name of the Project.
- organization_
id string organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.- srn string
- The Scaleway Resource Name (SRN) of the project.
- updated_
at string - The last update time of the Project.
- created
At String - The creation time of the Project.
- delete
With BooleanResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description String
- The description of the Project.
- name String
- The name of the Project.
- organization
Id String organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.- srn String
- The Scaleway Resource Name (SRN) of the project.
- updated
At String - The last update time of the Project.
- created
At string - The creation time of the Project.
- delete
With booleanResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description string
- The description of the Project.
- name string
- The name of the Project.
- organization
Id string organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.- srn string
- The Scaleway Resource Name (SRN) of the project.
- updated
At string - The last update time of the Project.
- created_
at str - The creation time of the Project.
- delete_
with_ boolresources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description str
- The description of the Project.
- name str
- The name of the Project.
- organization_
id str organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.- srn str
- The Scaleway Resource Name (SRN) of the project.
- updated_
at str - The last update time of the Project.
- created
At String - The creation time of the Project.
- delete
With BooleanResources - If true, deleting the project also deletes all the resources it contains, including resources not managed by Terraform. Defaults to
false. - description String
- The description of the Project.
- name String
- The name of the Project.
- organization
Id String organizationId)The organization ID the Project is associated with. Any change made to theorganizationIdwill recreate the resource.- srn String
- The Scaleway Resource Name (SRN) of the project.
- updated
At String - The last update time of the Project.
Import
Projects can be imported using the id argument, as shown below:
$ pulumi import scaleway:account/project:Project project 11111111-1111-1111-1111-111111111111
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 Friday, Nov 13, 2026 by pulumiverse