O'Reilly logo

Getting Started with Terraform - Second Edition by Kirill Shirinkin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Immutable infrastructure

Terraform works best if you adapt Immutable Infrastructure principles. It can also work pretty well if you use containers. Read Rebuilding our infrastructure (https://segment.com/blog/rebuilding-our-infrastructure/) from Segment about how they used Terraform with AWS Elastic Container Service and Docker for the new version of their infrastructure. It has good examples in the Continuous Integration part as well.

The ECS plus Terraform approach seems to gain higher adoption in general; for example, check out a presentation about more or less the same idea by Yevgeniy Brikman, named Infrastructure as Code: Running microservices on AWS with Docker, Terraform, and ECS (http://www.ybrikman.com/writing/2016/03/31/infrastructure-as-code-microservices-aws-docker-terraform-ecs/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required