Resources Reference for the DigitalOcean Terraform Provider

Terraform resources represent infrastructure objects such as Droplets, block storage volumes, and databases.

The following resources are available using the DigitalOcean Terraform provider:

Provides a DigitalOcean App resource.
Provides a DigitalOcean Kubernetes cluster resource. This can be used to create, delete, and modify clusters. For more information see the official documentation.
Provides a DigitalOcean Kubernetes node pool resource. While the default node pool must be defined in the digitalocean_kubernetes_cluster resource, this resource can be used to add additional ones to a cluster.
Provides a DigitalOcean Monitoring resource. Monitor alerts can be configured to alert about, e.g., disk or memory usage exceeding a certain threshold or traffic at a certain limit. Notifications can be sent to either an email address or a Slack channel.
Provides a DigitalOcean database user resource. When creating a new database cluster, a default admin user with name doadmin will be created. Then, this resource can be used to provide additional normal users inside the cluster.
Provides a DigitalOcean Container Registry resource. A Container Registry is a secure, private location to store your containers for rapid deployment.
Provides a bucket policy resource for Spaces, DigitalOcean’s object storage product. The digitalocean_spaces_bucket_policy resource allows Terraform to attach bucket policy to Spaces.
Provides a DigitalOcean DNS record resource.
Provides a resource for assigning an existing DigitalOcean Floating IP to a Droplet. This makes it easy to provision floating IP addresses that are not tied to the lifecycle of your Droplet.
Provides a DigitalOcean Project resource.
Assign resources to a DigitalOcean Project. This is useful if you need to assign resources managed in Terraform to a DigitalOcean Project managed outside of Terraform.
Provides a DigitalOcean Cloud Firewall resource. This can be used to create, modify, and delete Firewalls.
Provides a DigitalOcean Load Balancer resource. This can be used to create, modify, and delete Load Balancers.
Provides a DigitalOcean Droplet resource. This can be used to create, modify, and delete Droplets. Droplets also support provisioning.
Provides a DigitalOcean domain resource.
Provides a DigitalOcean database cluster resource.
Provides a resource which can be used to create a custom image from a URL.
Provides a DigitalOcean database firewall resource allowing you to restrict connections to your database to trusted sources. You may limit connections to specific Droplets, Kubernetes clusters, or IP addresses.
Provides a bucket resource for Spaces, DigitalOcean’s object storage product.
Provides a bucket object resource for Spaces, DigitalOcean’s object storage product. The digitalocean_spaces_bucket_object resource allows Terraform to upload content to Spaces.
Provides a DigitalOcean VPC resource.
Provides a DigitalOcean database replica resource.
Get Docker credentials for your DigitalOcean container registry.
Provides a DigitalOcean CDN Endpoint resource for use with Spaces.
Provides a DigitalOcean Certificate resource that allows you to manage certificates for configuring TLS termination in Load Balancers. Certificates created with this resource can be referenced in your Load Balancer configuration via their ID. The certificate can either be a custom one provided by you or automatically generated one with Let’s Encrypt.
Provides a DigitalOcean database connection pool resource.
Provides a DigitalOcean database resource. When creating a new database cluster, a default database with name defaultdb will be created. Then, this resource can be used to provide additional database inside the cluster.
Provides a resource which can be used to create a snapshot from an existing DigitalOcean Droplet.
Provides a DigitalOcean Floating IP to represent a publicly-accessible static IP addresses that can be mapped to one of your Droplets.
Provides a DigitalOcean SSH key resource to allow you to manage SSH keys for Droplet access. Keys created with this resource can be referenced in your Droplet configuration via their ID or fingerprint.
Provides a DigitalOcean Tag resource. A Tag is a label that can be applied to a Droplet resource in order to better organize or facilitate the lookups and actions on it. Tags created with this resource can be referenced in your Droplet configuration via their ID or name.
Provides a DigitalOcean Block Storage volume which can be attached to a Droplet in order to provide expanded storage.
Manages attaching a Volume to a Droplet.
Provides a DigitalOcean Volume Snapshot which can be used to create a snapshot from an existing volume.