« Previous 1 2 3 4 Next »
Infrastructure as Code with Terraform
Geographically Diverse Failover in the Cloud
Fail2plan = Plan2fail
When I hit the Go button (or at least the dry-run Plan button) with the command,
$ terraform plan
I am offered the output shown in Figure 2. Note the “+” signs on the left-hand side, which implies that the mighty Terraform is creating and not deleting the resources shown. Clearly this is especially important when you’re working in critical environments. You can see the creation of a single A record, three MX records, and a DNS zone called chris_DNS_zone .
Terraforming
Now I will hit Go for real. (By “Go,” I do of course mean running the terraform apply command.) Terraform sensibly asks me to type the word yes to confirm that the three plus signs shown are actually what I want. After typing yes , I then wait patiently for a little while before receiving the abbreviated output shown in Figure 3.
If you look a little closer at Figure 3, you can see I was offered a countdown timer of sorts. At the bottom of the output, the Apply complete! message offers the good news that I added three resources but didn’t delete or change any other existing resources.
Gooey
A quick look in the GUI (the AWS web console) shows that I did indeed affect the configuration of AWS (Figure 4). In five minutes (look for 300 seconds as opposed to 5 minutes), the TTLs were created, and AWS or Terraform in its wisdom created the DNS zone using default values of 172,800 seconds for the name server (NS) TTLs and 900 seconds for the SOA (Start of Authority record within the zone).
« Previous 1 2 3 4 Next »