Project

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
  • Load Balancers
  • Spaces Bucket
  • Volume

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

Example Usage

using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;

class MyStack : Stack
{
    public MyStack()
    {
        var playground = new DigitalOcean.Project("playground", new DigitalOcean.ProjectArgs
        {
            Description = "A project to represent development resources.",
            Environment = "Development",
            Purpose = "Web Application",
        });
    }

}

Coming soon!

import pulumi
import pulumi_digitalocean as digitalocean

playground = digitalocean.Project("playground",
    description="A project to represent development resources.",
    environment="Development",
    purpose="Web Application")
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";

const playground = new digitalocean.Project("playground", {
    description: "A project to represent development resources.",
    environment: "Development",
    purpose: "Web Application",
});

Create a Project Resource

new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);
def Project(resource_name, opts=None, description=None, environment=None, name=None, purpose=None, resources=None, __props__=None);
func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Project Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Project resource accepts the following input properties:

Description string

the description of the project

Environment string

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

Name string

The name of the Project

Purpose string

the purpose of the project, (Default: “Web Application”)

Resources List<string>

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

Description string

the description of the project

Environment string

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

Name string

The name of the Project

Purpose string

the purpose of the project, (Default: “Web Application”)

Resources []string

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

description string

the description of the project

environment string

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

name string

The name of the Project

purpose string

the purpose of the project, (Default: “Web Application”)

resources string[]

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

description str

the description of the project

environment str

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

name str

The name of the Project

purpose str

the purpose of the project, (Default: “Web Application”)

resources List[str]

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

Outputs

All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:

CreatedAt string

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

Id string
The provider-assigned unique ID for this managed resource.
IsDefault bool
OwnerId int

the id of the project owner.

OwnerUuid string

the unique universal identifier of the project owner.

UpdatedAt string

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

CreatedAt string

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

Id string
The provider-assigned unique ID for this managed resource.
IsDefault bool
OwnerId int

the id of the project owner.

OwnerUuid string

the unique universal identifier of the project owner.

UpdatedAt string

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

createdAt string

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

id string
The provider-assigned unique ID for this managed resource.
isDefault boolean
ownerId number

the id of the project owner.

ownerUuid string

the unique universal identifier of the project owner.

updatedAt string

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

created_at str

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

id str
The provider-assigned unique ID for this managed resource.
is_default bool
owner_id float

the id of the project owner.

owner_uuid str

the unique universal identifier of the project owner.

updated_at str

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

Look up an 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
static get(resource_name, id, opts=None, created_at=None, description=None, environment=None, is_default=None, name=None, owner_id=None, owner_uuid=None, purpose=None, resources=None, updated_at=None, __props__=None);
func 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)
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.

The following state arguments are supported:

CreatedAt string

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

Description string

the description of the project

Environment string

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

IsDefault bool
Name string

The name of the Project

OwnerId int

the id of the project owner.

OwnerUuid string

the unique universal identifier of the project owner.

Purpose string

the purpose of the project, (Default: “Web Application”)

Resources List<string>

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

UpdatedAt string

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

CreatedAt string

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

Description string

the description of the project

Environment string

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

IsDefault bool
Name string

The name of the Project

OwnerId int

the id of the project owner.

OwnerUuid string

the unique universal identifier of the project owner.

Purpose string

the purpose of the project, (Default: “Web Application”)

Resources []string

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

UpdatedAt string

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

createdAt string

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

description string

the description of the project

environment string

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

isDefault boolean
name string

The name of the Project

ownerId number

the id of the project owner.

ownerUuid string

the unique universal identifier of the project owner.

purpose string

the purpose of the project, (Default: “Web Application”)

resources string[]

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

updatedAt string

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

created_at str

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

description str

the description of the project

environment str

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

is_default bool
name str

The name of the Project

owner_id float

the id of the project owner.

owner_uuid str

the unique universal identifier of the project owner.

purpose str

the purpose of the project, (Default: “Web Application”)

resources List[str]

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

updated_at str

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

Package Details

Repository
https://github.com/pulumi/pulumi-digitalocean
License
Apache-2.0
Notes
This Pulumi package is based on the digitalocean Terraform Provider.