Menu

Tag: terraform

HowTo

TERRAFORM SYNTAX HIGHLIGHTING IN EMACS AND VIM

In this post, learn how to configure EMACS/VIM to provide syntax highlighting for Terraform files. Out of the box neither VIM nor EMACS have syntax highlighting for terraform files. Both VIM and EMACS have support for it through addons, however. EMACS Since EMACS is my personal favorite, I will start with it. Support for terraform […]

HowTo

TERRAFORM TAINT TIP

When I first started with Terraform, everytime I would make a small change I would completely rebuild all the infrastructure. Had I known this tip back then I could have saved myself a lot of time. Taint The tip is to use Terraforms taint command. When you use this command you mark a resource as […]

HowTo

INSTALLING TERRAFORM ON UBUNTU 17.10

Learn how to install Terraform on Ubuntu 17.10 Artfull Aardvark. Terraform Terraform allows you to do infrastructure as code. You write up your infrastructure (cloud, virtualized, etc) as code and Terraform will let you do the initial creation and provisioning of that infrastructure. You install it on your development system or you can deployment on […]

HowTo

TERRAFORM MODULE FOR PUPPET IN DOCKER

You may have heard about running puppet in docker described in Gareth Rushgrove’s post on puppet.com called Running Puppet software in Docker containers. I took that post a step or two further and created a Terraform module that deploys a puppet environment to a Nomad cluser. This post goes over the process of using that module. […]

HowTo

TERRAFORM ELASTICSEARCH AWS MODULE

Just released my first terraform module to the Terraform Registry. This module deploys and ELK (Elasticsearch/Logstash/Kibana) server to AWS using Terraform. The Terraform module can be found at https://registry.terraform.io/modules/admintome/elk/aws. To use it create a file in your project called modules.tf with the following contents: module “elk” { source = “admintome/elk/aws” key = “dev” private_key = “${file(“~/.ssh/id_rsa”)}” } Make […]

HowTo

PROVISIONING INFRASTRUCTURE WITH TERRAFORM

In my last article I walk you through creating infrastrure using Terraform. In this article we will make that infrastructure useful by provisioning software to it automatically. As stated before, this is a continuation of another article: Terraform Introduction. If you have not already I suggest starting with that article because this article builds upon that […]

HowTo

TERRAFORM INTRODUCTION

Terraform is HashiCorp’s answer to the infrastructure as code paradigm. With it you can stand up infrastructure in a myriad of areas including Amazon Web Services, Google Cloud Engine, Openstack, Nomad, and many more. With Terraform you can quickly create infrastructure and when you are done, you can easily destroy that infrastructure. In this article […]

HowTo

DEPLOYING A CONSUL CLUSTER USING TERRAFORM AND PUPPET

After reading The DevOps Handbook it became obvious that the current trend in IT is defining your infrastructure as code. This gives you infrastructure that you can build and destroy at will. In this article we define a consul cluster in code using Hashicorp’s Terraform. Cluster Design Terraform is great at provisioning your infrastructure but leaves the […]