Terraform

Terraform is a powerful open-source tool that allows you to build, version, and automate the deployment of cloud infrastructure. You can use Terraform to set up simple or complex architectures for your web applications in your DigitalOcean account with a few commands on the command line. This gives you the benefit of increased efficiency when setting up and scaling your web application's infrastructure.

Getting Started

Install Terraform and configure it to deploy DigitalOcean resources.
Deploy three Droplets, a database, and a load balancer into a VPC network using Terraform and this interactive tutorial.
Find the full DigitalOcean Terraform reference documentation on HashiCorp's website.

Resources

Latest Updates

12 November 2020

  • v2.2.0 of the DigitalOcean Terraform Provider is now available. This release adds a new digitalocean_ssh_keys data source and a digitalocean_custom_image resource.

6 November 2020

  • v2.1.0 of the DigitalOcean Terraform Provider is now available. DigitalOcean Container Registry is now in general availability and requires a subscription plan. As a result, the digitalocean_container_registry resource now requires setting a subscription_tier_slug which is supported with this release.

20 October 2020

  • v2.0.0 of the DigitalOcean Terraform Provider is now available. This release uses v2.0.3 of the Terraform Plugin SDK and now only supports Terraform v0.12 and higher. It also includes a new digitalocean_records data source.

For more information, see the full release notes.