-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Infrastructure as Code Cookbook
By :

In this recipe, we'll build from scratch a fully working CoreOS cluster on Digital Ocean in their New York region, using Terraform and cloud-init. We'll add some latency monitoring as well with StatusCake, so we have a good foundation of using Terraform on Digital Ocean.
To step through this recipe, you will need the following:
A working Terraform installation
A Digital Ocean account
A StatusCake account
An Internet connection
Let's start by creating the digitalocean
provider (it only requires an API token) in a file named providers.tf
:
provider "digitalocean" { token = "${var.do_token}" }
Declare the do_token
variable in a file named variables.tf
:
variable "do_token" { description = "Digital Ocean Token" }
Also, don't forget to set it in a private terraform.tfvars
file:
do_token = "a1b2c3d4e5f6"
We know that we'll need an SSH key to log into the cluster members. With Digital...
Change the font size
Change margin width
Change background colour