Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

DigitalOcean

v4.10.0 published on Wednesday, Nov 24, 2021 by Pulumi

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.

Example

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

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

const instance = new digitalocean.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 (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	do "github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		domain, err := do.NewDomain(ctx, "test", &do.DomainArgs{
			Name:      pulumi.String("mydomain.com"),
			IpAddress: pulumi.String("192.168.10.10"),
		})
		if err != nil {
			return err
		}

		return nil
	})
}

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",
            });
        });
}