Resources Reference for the DigitalOcean Terraform Provider

Generated on 17 Apr 2025 from Terraform version v2.51.0

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

The following resources are available using the DigitalOcean Terraform provider:

digitalocean_app

Provides a DigitalOcean App resource.

digitalocean_cdn

Provides a DigitalOcean CDN Endpoint resource for use with Spaces.

digitalocean_certificate

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.

digitalocean_container_registry

Provides a DigitalOcean Container Registry resource. A Container Registry is a secure, private location to store your containers for rapid deployment.

digitalocean_container_registry_docker_credentials

Get Docker credentials for your DigitalOcean container registry.

digitalocean_custom_image

Provides a resource which can be used to create a custom image from a URL. The URL must point to an image in one of the following file formats:

digitalocean_database_cluster

Provides a DigitalOcean database cluster resource.

digitalocean_database_connection_pool

Provides a DigitalOcean database connection pool resource.

digitalocean_database_db

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.

digitalocean_database_firewall

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.

digitalocean_database_kafka_config

Provides a virtual resource that can be used to change advanced configuration options for a DigitalOcean managed Kafka database cluster.

digitalocean_database_kafka_topic

Provides a DigitalOcean Kafka topic for Kafka clusters.

digitalocean_database_mongodb_config

Provides a virtual resource that can be used to change advanced configuration options for a DigitalOcean managed MongoDB database cluster.

digitalocean_database_mysql_config

Provides a virtual resource that can be used to change advanced configuration options for a DigitalOcean managed MySQL database cluster.

digitalocean_database_opensearch_config

Provides a virtual resource that can be used to change advanced configuration options for a DigitalOcean managed Opensearch database cluster.

digitalocean_database_postgresql_config

Provides a virtual resource that can be used to change advanced configuration options for a DigitalOcean managed PostgreSQL database cluster.

digitalocean_database_redis_config

Provides a virtual resource that can be used to change advanced configuration options for a DigitalOcean managed Redis database cluster.

digitalocean_database_replica

Provides a DigitalOcean database replica resource.

digitalocean_database_user

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.

digitalocean_domain

Provides a DigitalOcean domain resource.

digitalocean_droplet

Provides a DigitalOcean Droplet resource. This can be used to create, modify, and delete Droplets. Droplets also support provisioning.

digitalocean_droplet_autoscale

Provides a DigitalOcean Droplet Autoscale resource. This can be used to create, modify, read and delete Droplet Autoscale pools.

digitalocean_droplet_snapshot

Provides a resource which can be used to create a snapshot from an existing DigitalOcean Droplet.

digitalocean_firewall

Provides a DigitalOcean Cloud Firewall resource. This can be used to create, modify, and delete Firewalls.

digitalocean_floating_ip

~> Deprecated: DigitalOcean Floating IPs have been renamed reserved IPs. This resource will be removed in a future release. Please use digitalocean_reserved_ip instead.

digitalocean_floating_ip_assignment

~> Deprecated: DigitalOcean Floating IPs have been renamed reserved IPs. This resource will be removed in a future release. Please use digitalocean_reserved_ip_assignment instead.

digitalocean_kubernetes_cluster

Provides a DigitalOcean Kubernetes cluster resource. This can be used to create, delete, and modify clusters. For more information see the official documentation.

digitalocean_kubernetes_node_pool

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.

digitalocean_loadbalancer

Provides a DigitalOcean Load Balancer resource. This can be used to create, modify, and delete Load Balancers.

digitalocean_monitor_alert

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.

digitalocean_partner_attachment

-> Partner Attachment is currently in private preview. If you are not a member of the private preview group for this feature, you will not be able to use it until is has been more widely released. Please follow the official DigitalOcean changelog for updates.

digitalocean_project

Provides a DigitalOcean Project resource.

digitalocean_project_resources

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.

digitalocean_record

Provides a DigitalOcean DNS record resource.

digitalocean_reserved_ip

Provides a DigitalOcean reserved IP to represent a publicly-accessible static IP addresses that can be mapped to one of your Droplets.

digitalocean_reserved_ip_assignment

Provides a resource for assigning an existing DigitalOcean reserved IP to a Droplet. This makes it easy to provision reserved IP addresses that are not tied to the lifecycle of your Droplet.

digitalocean_reserved_ipv6

Provides a DigitalOcean reserved IPv6 to represent a publicly-accessible static IPv6 addresses that can be mapped to one of your Droplets.

digitalocean_reserved_ipv6_assignment

Provides a resource for assigning an existing DigitalOcean reserved IPv6 to a Droplet. This makes it easy to provision reserved IPv6 addresses that are not tied to the lifecycle of your Droplet.

digitalocean_spaces_bucket

Provides a bucket resource for Spaces, DigitalOcean’s object storage product.

digitalocean_spaces_bucket_object

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.

digitalocean_spaces_bucket_policy

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.

digitalocean_spaces_cors_configuration

Provides a CORS configuration resource for Spaces, DigitalOcean’s object storage product. The digitalocean_spaces_bucket_cors_configuration resource allows Terraform to to attach CORS configuration to Spaces.

digitalocean_spaces_key

Provides a key resource for Spaces, DigitalOcean’s object storage product.

digitalocean_ssh_key

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.

digitalocean_tag

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.

digitalocean_uptime_alert

Provides a DigitalOcean Uptime Alerts resource. Uptime Alerts provide the ability to add alerts to your DigitalOcean Uptime Checks when your endpoints are slow, unavailable, or SSL certificates are expiring.

digitalocean_uptime_check

Provides a DigitalOcean Uptime Checks resource. Uptime Checks provide the ability to monitor your endpoints from around the world, and alert you when they’re slow, unavailable, or SSL certificates are expiring.

digitalocean_volume

Provides a DigitalOcean Block Storage volume which can be attached to a Droplet in order to provide expanded storage.

digitalocean_volume_attachment

Manages attaching a Volume to a Droplet.

digitalocean_volume_snapshot

Provides a DigitalOcean Volume Snapshot which can be used to create a snapshot from an existing volume.

digitalocean_vpc

Provides a DigitalOcean VPC resource.

digitalocean_vpc_peering

-> VPC peering is currently in alpha. If you are not a member of the alpha group for this feature, you will not be able to use it until it has been more widely released. Please follow the official DigitalOcean changelog for updates.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.