Project

class Project : KotlinCustomResource

Provides a DigitalOcean Project resource. Projects allow you to organize your resources into groups that fit the way you work. You can group resources (like Droplets, Spaces, Load Balancers, domains, and Floating IPs) in ways that align with the applications you host on DigitalOcean. The following resource types can be associated with a project:

  • Database Clusters

  • Domains

  • Droplets

  • Floating IP

  • Kubernetes Cluster

  • Load Balancers

  • Spaces Bucket

  • Volume Note: A provider managed project cannot be set as a default project.

Example Usage

The following example demonstrates the creation of an empty project:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.Project;
import com.pulumi.digitalocean.ProjectArgs;
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 playground = new Project("playground", ProjectArgs.builder()
.description("A project to represent development resources.")
.environment("Development")
.purpose("Web Application")
.build());
}
}

Import

Projects can be imported using the id returned from DigitalOcean, e.g.

$ pulumi import digitalocean:index/project:Project myproject 245bcfd0-7f31-4ce6-a2bc-475a116cca97

Properties

Link copied to clipboard
val createdAt: Output<String>

the date and time when the project was created, (ISO8601)

Link copied to clipboard
val description: Output<String>?

the description of the project

Link copied to clipboard
val environment: Output<String>?

the environment of the project's resources. The possible values are: Development, Staging, Production)

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isDefault: Output<Boolean>?

a boolean indicating whether or not the project is the default project. (Default: "false")

Link copied to clipboard
val name: Output<String>

The name of the Project

Link copied to clipboard
val ownerId: Output<Int>

the id of the project owner.

Link copied to clipboard
val ownerUuid: Output<String>

the unique universal identifier of the project owner.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val purpose: Output<String>?

the purpose of the project, (Default: "Web Application")

Link copied to clipboard
val resources: Output<List<String>>

a list of uniform resource names (URNs) for the resources associated with the project

Link copied to clipboard
val updatedAt: Output<String>

the date and time when the project was last updated, (ISO8601)

Link copied to clipboard
val urn: Output<String>