Project Args
data class ProjectArgs(val description: Output<String>? = null, val environment: Output<String>? = null, val isDefault: Output<Boolean>? = null, val name: Output<String>? = null, val purpose: Output<String>? = null, val resources: Output<List<String>>? = null) : ConvertibleToJava<ProjectArgs>
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());
}
}
Content copied to clipboard
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
Content copied to clipboard