Update: I took this blog post series, expanded it, and turned it into a book called Terraform: Up & Running!
In the previous parts of the Comprehensive Guide to Terraform series, we explained why we picked Terraform, introduced the basic syntax and features of Terraform, discussed how to manage Terraform state, and showed how to create reusable infrastructure modules with Terraform. Today, we are releasing the fifth part of the series: terraform tips & tricks: loops, if-statements, and gotchas.
In this part, we are going to expand your Terraform toolbox with some more advanced tips & tricks, such as how to do loops and if-statements. We’ll also discuss some of Terraform’s weaknesses so you can avoid the most common gotchas.
Herman van der Veer
If you enjoyed this post, you may also like my books, Hello, Startup and Terraform: Up & Running. If you need help with DevOps or infrastructure, reach out to me at Gruntwork.