Terraform

Terraform subscription active
You will receive email notifications for new publications on Terraform.
34 Results
  • Tutorial

    How To Use Terraform with DigitalOcean

    Terraform is a tool for building and managing infrastructure in an organized way. It can be used to manage DigitalOcean droplets and DNS entries, in addition to a large variety of services offered by other providers. ...
    By Mitchell Anicas, Brian Hogan System Tools API Terraform Nginx Load Balancing
  • Tech talk

    Building a Minimal, Production-Ready Infrastructure on DigitalOcean

    How to build a minimal, production-ready architecture using Terraform and DigitalOcean Droplet, LBaaS, VPC, Firewall, and DNS.
    By Mason Egger DigitalOcean Managed Load Balancers Firewall DNS Terraform
  • 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...
    By Savic Terraform Configuration Management
  • Tutorial

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

    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...
    By Savic Terraform Configuration Management Automated Setups Quickstart
  • 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...
    By ivanderz Terraform DigitalOcean Cloud Firewalls
  • Webinar Series: Building Blocks for Doing CI/CD with Kubernetes

    If you are getting started with containers, you will likely want to know how to automate the processes of building, testing, and deployment. In this first article of the CI/CD with Kubernetes series, we will cover ke...
    By neependrakhare Kubernetes Terraform CI/CD Docker Microservices Ubuntu Ubuntu 16.04
  • Tutorial

    How to Deploy a Node.js App Using Terraform on Ubuntu 14.04

    Learn to use Terraform, a very simple, yet powerful tool that allows you to write your stack as code. In this tutorial, you'll deploy a Node.js app to DigitalOcean and then explore how Terraform works so you can build...
    By getstreamio Configuration Management Deployment Terraform Node.js Ubuntu
  • Tutorial

    DigitalOcean Blueprints: Getting Up and Running with Node.js, MySQL Replication, and Cachet

    DigitalOcean Blueprints provide you with fast and flexible infrastructure to support you as you scale. You can leverage and incorporate Blueprints as part of your development workflow to spend more time crafting code ...
    By Kathleen Juell Blueprint DigitalOcean DigitalOcean Cloud Firewalls Block Storage Node.js MySQL Ansible Solutions Terraform Automated Setups Databases
  • Tutorial series

    Webinar Series: CI/CD on Kubernetes

    The series discusses how to take a Cloud Native approach to building, testing, and deploying applications, covering release management, Cloud Native tools, Service Meshes, and CI/CD tools that can be used with Kuberne...
    By neependrakhare Kubernetes Terraform CI/CD Docker Microservices Ubuntu Ubuntu 16.04 Deployment Open Source Git
  • Navigator's Guide: Modular Infrastructure Configuration

    The previous section used Terraform and Ansible to provision resources (Droplets, Load Balancers, and Floating IPs) and deploy your WordPress application. In this supplemental section, we discuss some ways to simplify...
    By Fabian Barajas, Jon Schwenn Solutions Configuration Management Terraform Ansible
  • Tutorial series

    The Navigator's Guide to DigitalOcean

    This is an early release version of the contents of the Navigator's Guide book, an offering from the DigitalOcean Solutions Engineers. The goal of the book is to help business customers plan their infrastructure needs...
    By Fabian Barajas and Jon Schwenn DigitalOcean Articles Solutions High Availability Configuration Management Terraform Ansible
  • Question

    Attach Kubernetes cluster to project

    Is there any way to create a k8s cluster inside a newly created project, or to assign it, after-the-fact, to one of the existing projects, with Terraform, doctl or another tool? I am currently writing a Terraform pro...
    Accepted Answer: You can see the DOKS documentation calls out a bit of a lack of support here, but provides a workaround:https://www.digitalocean.com/docs/kubernetes/#limits The control panel does not support assigning a cluster to a ...
    1 By servicesShrimp Kubernetes Terraform DigitalOcean API and CLI (doctl)
  • Question

    Create Spaces bucket with Terraform gives malformed request

    I want to create a space bucket using Terraform. Here is my attempt: ``` provider "digitalocean" { token = var.dotoken spacesaccessid = var.dospacesclientid spacessecretkey = var.dospacessecret_key } resource "d...
    Accepted Answer: The error being returned by the API here is unclear, but the cause is the underscore (_) in the Space name. In the control panel, when creating a new Space, it notes that names must be between 3 and 63 characters long...
    3 By jpauthier Terraform DigitalOcean Spaces
  • Question

    How do I work with "count" and connection.host using Terraform?

    Using this setup me@mybox:~terraform -v Terraform v0.12.8 + provider.digitalocean v1.7.0 I try to create two droplets serving Nginx using this Terraform file ``` resource "digitalocean_droplet" "web" { count = 2 na...
    Accepted Answer: Rather than using the count, you can simplify this a bit by referencing self.ipv4_address and Terraform will do the right thing. self allows you to access attributes of the resource it is called from. Putting this all...
    2 By Mowijo Terraform DigitalOcean
  • Question

    Firewall droplet_id list

    VERSION DETAILS Terraform v0.12.13 + provider.aws v2.29.0 + provider.digitalocean v1.7.0 + provider.null v2.1.2 + provider.template v2.1.2 PROBLEM I have the following terraform file which defined a DigitalOcean Clo...
    Accepted Answer: The best way to combine to lists of attributes using Terraform >= 0.12 syntax is to use the concat function. From the docs (https://www.terraform.io/docs/configuration/functions/concat.html): concat takes two or more ...
    1 By goodwillhacking Terraform DigitalOcean API and CLI (doctl)
  • Question

    What's the best way to create a droplet with block storage using Terraform and Ansible?

    Hi I'm in the process of automating my infrastructure on DO. I have all droplets and volumes created using terraform, and I'm also using user data during the provisioning for things like defining base packages, creati...
    Accepted Answer: Your approach to using Terraform for provisioning infrastructure and Ansible for config management is the right way to think about it. Luckily Terraform should be able to do what you'd like. Pre-formatted volumes crea...
    1 By bytencode Ansible Terraform Block Storage Ubuntu 18.04
  • Question

    DigitalOcean Terraform can't work with Count and droplet_ids

    When trying to run the following script I get an error and I don't understand why. All the example show it should be done this way: ``` resource "digitalocean_loadbalancer" "web" { name = "loadbalancer-1" region...
    Accepted Answer: Terraform recently released a major new version, 0.12.x. This included some fairly important changes in syntax. One of these changes is "first-class list support (https://www.terraform.io/upgrade-guides/0-12.html#refe...
    1 By freekmencke DigitalOcean Terraform
  • Question

    Migrating to a Scalable Wordpress Solution

    TLDR; I want to manage and configure multiple LEMP stacks with Terraform and Chef/Ansible to host WordPress sites without losing the data when a droplet is destroyed. Here are the questions that I am looking to have a...
    Accepted Answer: (Some mistakes were made in this reply, see comments that follow it) Hello friend! That sounds like a lot of fun any way you spin it. I'm going to do my best to provide answers to what I can, and hope that others feel...
    2 By KnowIsPow WordPress Nginx Chef Terraform Docker MySQL Block Storage Ubuntu
  • Question

    Error with firewalls api, shows `Server was unable to give you a response.`

    Most firewalls declared on Terraform .hcl file does not get created when using tarraform as in this docs https://www.terraform.io/docs/providers/do/r/firewall.html Shows error like this, ``` Error: Error applying plan...
    Accepted Answer: I believe terraform was trying to apply firewalls to droplet resources, and dependent resource was not available to handle it at the time. So some of the firewalls were applied randomly on each try. Related issue on ...
    2 By surajstha Terraform Firewall Ubuntu 18.04
  • Question

    Add load balancer created by helm chart to project

    Hi. I have a Terraform project that does the following: 1) creates a VPC 2) provisions a k8s cluster and adds it to the aforementioned VPC 3) creates a project 4) adds the k8s cluster to the project 5) applies a helm ...
    1 By servicesShrimp Kubernetes WordPress Load Balancing DigitalOcean Volumes Terraform