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 basic 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.
A complete reference for the DigitalOcean Terraform provider.
Deploy three Droplets, a database, and a load balancer into a VPC network using Terraform and this interactive tutorial.
Store Terraform state remotely on DigitalOcean Spaces to enable team collaboration.

Resources

A Community tutorial introducing Terraform and the DigitalOcean provider.
digitalocean.com/community
A Community tutorial about using Terraform to work with existing DigitalOcean infrastructure.
digitalocean.com/community
Documentation for Terraform, including Terraform CLI, Terraform Cloud, and Terraform Enterprise.
www.terraform.io

Latest Updates

29 March 2022

  • v2.19.0 of the DigitalOcean Terraform Provider is now available. This release adds custom region support of the digitalocean_container_registry resource.

8 March 2022

  • v2.18.0 of the DigitalOcean Terraform Provider is now available. This release adds a new digitalocean_spaces_bucket_policy resource as well as support for configuring log destinations and alert policies in the digitalocean_app resource.

14 January 2022

  • v2.17.0 of the DigitalOcean Terraform Provider is now available. This release adds support for:

    • Fetching load balancer resources by ID in a datasource.
    • Updating the name and description for default VPC networks.

    It also includes bug fixes.

For more information, see the full release notes.