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

3 February 2021

  • v2.5.0 of the DigitalOcean Terraform Provider is now available. This release adds a number of improvements to the the digitalocean_app resource including: support for images as a component source, support for job components, support for internal_ports for services, and support for wildcard domains.

19 January 2021

  • v2.4.0 of the DigitalOcean Terraform Provider is now available. This release includes support for deployments from GitLab and app-wide environment variables for the digitalocean_app resource, bug fixes, and other improvements.

3 December 2020

  • v2.3.0 of the DigitalOcean Terraform Provider is now available. This release includes support for configuring the size of a digitalocean_loadbalancer resource. OpenBSD binaries are now built and available for download.

For more information, see the full release notes.