Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

what do you recommend practicing for terraform

 
author & internet detective
Posts: 40912
840
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a copy of the book (haven't read it yet). In terms of hands on practice, what do you recommend doing for getting started?
 
Author
Posts: 15
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have a copy of the book (haven't read it yet). In terms of hands on practice, what do you recommend doing for getting started?



It depends on how much you already know about Terraform. There is always the trivial example of deploying an EC2 instance like here: https://learn.hashicorp.com/tutorials/terraform/aws-build?in=terraform/aws-get-started. (or equivalent in other clouds) , this doesn't take more than 15 minutes and is good for getting your feet wet. I also discuss this in chapter 1 of my book.

After that I would strongly recommend learning how Terraform actually works, at least from a high level perspective. Terraform is fundamentally a state management tool for APIs, and what it is doing under the hood is making CRUD operations. This is chapter 2 of my book.

Once you know how Terraform works you need to understand the DSL called HCL that Terraform is written in. Its a little different than other popular programming languages and doesn't have much use outside of HashiCorp specific products. Even between HashiCorp products the language is wildly different. Anyways theres some pretty powerful stuff you can do with the language, like for expressions, conditionals, and list comprehensions. I go through this in chapter 3 of the book.

Finally you are ready to do a real significant project.  Something like deploy a frontend layer, API layer, and database. This is chapter 4 of the book.

There's many ways to learn Terraform. I learned it by struggling on my own. My purpose in writing this book is so that other people wouldn't have to go through what I went through. I have distilled all of my knowledge into this book and structured it in such a way that you can learn Terraform quickly and effectively. I highly recommend reading through at least the first 4 chapters. And definitely do the hands on exercise in chapter 4.
reply
    Bookmark Topic Watch Topic
  • New Topic