DigitalOcean

The DigitalOcean provider for Pulumi can be used to provision any of the cloud resources available in DigitalOcean. The DigitalOcean provider must be configured with credentials to deploy and update resources in a DigitalOcean cloud.

See the full API documentation for complete details of the available DigitalOcean provider APIs.

Setup

The DigitalOcean provider supports several options for providing access to DigitalOcean credentials. See the DigitalOcean setup page for details.

Example

const do = require("@pulumi/digitalocean")

const domain = new do.Domain("test", {
  name: "mydomain.com",
  ipAddress: "192.168.10.10",
});
import * as do from "@pulumi/digitalocean";

const instance = new do.Domain("test", {
  name: "mydomain.com",
  ipAddress: "192.168.10.10",
});
import pulumi_digitalocean as do

instance = do.Domain("test",
  name='mydomain.com',
  ip_address='192.168.10.10'
)
import (
  do "github.com/pulumi/pulumi-digitalocean/sdk/go/digitalocean"
)

domain, _ := do.NewDomain(ctx, "test", &do.DomainArgs{
  Name: "mydomain.com",
  IpAddress: "192.168.10.10",
})
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.DigitalOcean;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var instance = new DigitalOcean.Domain("test", new DigitalOcean.DomainArgs
            {
                Name = "mydomain.com",
                IpAddress = "192.168.10.10",
            });
        });
}

Libraries

The following packages are available in packager managers:

The DigitalOcean provider is open source and available in the pulumi/pulumi-digitalocean repo.