Terraform

Terraform is a tool for building and managing infrastructure in an organized way. It works by reading configuration files that describe the components that make up your application environment or datacenter. Based on the configuration, it generates an execution plan, which describes what it will do to reach the desired state.

featured tutorialHow To Import Existing DigitalOcean Assets into Terraform
Terraform is an infrastructure as code tool created by HashiCorp that helps developers with deploying, updating, and ...

Ivan • Published on February 25, 2020 · Updated on December 8, 2021

featured tutorialHow To Build a Hashicorp Vault Server Using Packer and Terraform on DigitalOcean
Vault, by Hashicorp, is an open-source tool for securely storing secrets and sensitive data in dynamic cloud environm...

Savic • Published on March 3, 2020 · Updated on December 1, 2021

featured tutorialHow To Use Terraform with DigitalOcean
Terraform is a tool for building and managing infrastructure in an organized way. In this tutorial, you’ll install an...

Mitchell Anicas, and Brian Hogan • Published on August 7, 2014 · Updated on March 11, 2022

Subscribe to Terraform
Get notified when new articles on Terraform are published.
    All
  • 20 Results
    • Question

      Best Practices to Deploy Docker on DigitalOcean using Terraform

      Hi guys … I’m wondering if there are some best practices to deploy Docker images to Digital Ocean using Terraform. Because I don’t expect much load and don’t need failover features etc. I’m not aiming to deploy to kub...
      1 answer2 days agoBy Sebastian SommerfeldDigitalOcean App PlatformDigitalOcean DropletsTerraform
    • Question

      My cloud config template file does not seem to be working when I use it to boot up a droplet in Digital Ocean?

      I’m using Terraform to spin up a DO droplet, using an Ubuntu and Docker image. Checkout below: resource "digitalocean_droplet" "web" { image = "docker-20-04" name = "web" region = "nyc3" size = "s-1vcpu-1gb" ssh_keys ...
      No answers yet5 days agoBy Andres JaramilloDigitalOcean DropletsInitial Server SetupTerraform
    • Question

      Terraform force replacement on replica already imported

      I’m trying to run terraform and don’t make changes related to the db, for that reason I already imported all the resources.I’m having an issue with the replica because I have already imported that resource, with all t...
      No answers yet23 days agoBy HappyNavyJellyfishDatabasesTerraform
    • Question

      Can a droplet not have a public ip address ?

      I am using Terraform to build droplets but wish to build them without public addresses so my access to them thru ssh is only thru a bastion server which has a public address.
      1 answer28 days agoBy G DaughenbaughDigitalOcean DropletsNetworkingTerraform
    • Tutorial

      How To Build a Custom Terraform Module

      Terraform modules encapsulate distinct logical components of your infrastructure by grouping their resources together. In this tutorial, you’ll create a Terraform module that will set up multiple Droplets behind a Loa...
      2 months agoBy SavicTerraformInfrastructureCloud Computing
    • Tutorial

      How To Use Terraform With Your Team

      In this tutorial, you’ll create an organization in Terraform Cloud to which you’ll connect your project. You’ll then use your orgnanization to set up workspaces and resources. You will store your state in the managed ...
      2 months agoBy SavicTerraformCloud ComputingDigitalOcean Managed PostgreSQL Database
    • Tutorial

      How To Use Terraform with DigitalOcean

      Terraform is a tool for building and managing infrastructure in an organized way. In this tutorial, you’ll install and use Terraform to create an infrastructure on DigitalOcean that consists of two Nginx servers that ...
      3 months agoBy Mitchell Anicas, Brian HoganTerraformSystem ToolsAPINginxLoad BalancingDigitalOcean Managed Load BalancersDNSConfiguration Management
    • Tech Talk

      Infrastructure As Code With Terraform

      Define your infrastructure as code and prevent having to rebuild it when emergencies occur. See how easy it is to reproduce your infrastructure using Terraform.
      3 months agoBy Mason EggerConfiguration ManagementTerraformTech Talks
    • Question

      When terraform destroy for DO Kubernetes, My load balance is deployed before it should.

      I provision digitalocean_loadbalancer first because I need to provide ip to creating new Cloudflare record. In the parallel, I also provision nginx_ingress_chart with Helm as well which is attached the config service....
      No answers yet4 months agoBy Kanisorn SuthamDigitalOcean Managed KubernetesDigitalOcean Managed Load BalancersTerraform
    • Question

      How to resize Kubernetes cluster?

      We followed the starter kit to kick start our cluster and I have a couple of questions. #1 We bootstrapped the cluster following this: https://github.com/digitalocean/Kubernetes-Starter-Kit-Developers/tree/main/15-aut...
      No answers yet4 months agoBy ShurikAgKubernetesDigitalOcean Managed KubernetesTerraform
    • Question

      Follow the example but get error when I run example for Terraform with Ansible

      as i follow the example athttps://www.digitalocean.com/community/tutorials/how-to-use-ansible-with-terraform-for-configuration-management When I ran itterraform apply -var “do_token=${DO_PAT}” -var “pvt_key=/home/ubun...
      1 answer5 months agoBy acdbrn1960Configuration ManagementAnsibleTerraformInfrastructure
    • Tutorial

      How To Import Existing DigitalOcean Assets into Terraform

      Terraform is an infrastructure as code tool created by HashiCorp that helps developers with deploying, updating, and removing different assets of their infrastructure in an efficient and more scalable way. In this tut...
      6 months agoBy IvanTerraformCloud ComputingDigitalOcean Cloud Firewalls
    • Tutorial

      How To Build a Hashicorp Vault Server Using Packer and Terraform on DigitalOcean

      Vault, by Hashicorp, is an open-source tool for securely storing secrets and sensitive data in dynamic cloud environments. Packer and Terraform, also developed by Hashicorp, can be used together to create and deploy i...
      6 months agoBy SavicTerraformConfiguration Management
    • Tutorial

      How To Troubleshoot Terraform

      Similarly to developing with other programming languages and frameworks, setting log levels in Terraform to gain insight into its internal workflows with the necessary verbosity is a feature that can help you when tro...
      6 months agoBy SavicTerraformDigitalOcean
    • Tutorial

      How To Deploy Multiple Environments in Your Terraform Project Without Duplicating Code

      Some advanced features Terraform offers become useful when your project grows in size and complexity. It’s possible to alleviate the cost of maintaining complex infrastructure definitions for multiple environments by ...
      6 months agoBy SavicTerraformInfrastructure
    • Tutorial

      How To Use Ansible with Terraform for Configuration Management

      Ansible and Terraform are not competing solutions, as they resolve different phases of infrastructure and software deployment. In this tutorial, you’ll deploy Droplets using Terraform, and then immediately after their...
      6 months agoBy SavicTerraformAnsibleConfiguration ManagementInfrastructure
    • Question

      Ansible inventory plugin instead of Terraform?

      Hello! I am trying to setup a cloud with VPC and want to make it private by restricting access only for internal nodes and avoid using floating IPs (except for vpn server). The problem is that I can’t rely on private ...
      No answers yet7 months agoBy tzoikerAnsibleTerraform
    • Tutorial

      How To Protect Sensitive Data in Terraform

      Terraform provides automation to provision your infrastructure in the cloud. To do this, Terraform authenticates with cloud providers to deploy the resources and perform the planned actions. However, the information T...
      7 months agoBy SavicTerraformDigitalOcean SpacesInfrastructure
    • Tutorial

      How To Create Reusable Infrastructure with Terraform Modules and Templates

      One of the main benefits of Infrastructure as Code is reusing parts of the defined infrastructure. In this tutorial, we’ll consider some of the ways of defining and reusing code in Terraform projects. You’ll reference...
      7 months agoBy SavicTerraformInfrastructure
    • Question

      Need example of Ansible ssh public and private key installation

      In this tutorialhttps://www.digitalocean.com/community/tutorials/how-to-use-ansible-with-terraform-for-configuration-management There is mention in ~/terraform-ansible/apache-install.ymlto use the public key as:key: “...
      1 answer8 months agoBy BostonTomConfiguration ManagementAnsibleTerraform