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.
Find the full DigitalOcean Terraform reference documentation on HashiCorp’s website.

Resources

Latest Updates

8 November 2021

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

    • Scaling load balancers using the size_unit field.
    • source_kubernetes_ids and destination_kubernetes_ids attributes for Kubernetes firewall rules.

    It also includes bug fixes.

1 November 2021

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

    • Disabling automatic DNS record creation when using Let’s Encrypting certificates.
    • Revoking OAuth tokens when credentials are destroyed.

    It also includes bug fixes.

7 October 2021

  • v2.14.0 of the DigitalOcean Terraform Provider is now available. This release adds support for the high availability (ha) attribute when creating Kubernetes clusters.

For more information, see the full release notes.