Skip to main content

HashiCorp Terraform 0.9

We've released Terraform 0.9. Terraform is a tool for safely and efficiently building, combining, and launching any infrastructure. Since our last major Terraform release, we had 8 minor releases to add and improve hundreds of resources and dozens of providers and the number of community contributors has increased from 750 to just over 900. Terraform 0.9 adds major new functionality to Terraform. Highlights include: Destroy Provisioners State Locking Interruptable Provisioners State Environments Remote State Revamp Provider Changes
resource "aws_instance" "consul" {
  # ... other fields

  provisioner "remote-exec" {
    command = "consul leave"
    when = "destroy"
  }
}
$ terraform env list
  default
* mitchellh-test

$ terraform env select default
Switched to environment "default"!

$ terraform env delete mitchellh-test
Deleted environment "mitchellh-test"!
resource "aws_instance" "example" {
  count = "${terraform.env == "default" ? 5 : 1}"

  tags { Name = "web - ${terraform.env}" }

  # ... other fields
}
terraform {
  backend "consul" {
    address = "demo.consul.io"
    path    = "tfdocs"
  }
}
resource "aws_rds" "db" {
  # ... other fields

  timeouts {
    create = "10m"
  }
}

More posts like this