digitalocean logo

DigitalOcean

v4.16.0 published on Wednesday, Sep 28, 2022 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 Pulumi;
using Pulumi.DigitalOcean;

await Deployment.RunAsync(() =>
{
  var instance = new DigitalOcean.Domain("test", new DigitalOcean.DomainArgs
  {
      Name = "mydomain.com",
      IpAddress = "192.168.10.10",
  });
});