Get a quick review of the recommended style conventions to keep your Terraform code readable and maintainable.
- [Instructor] There's one more thing … before we jump in writing code. … Let's take a minute to review … some of the Terraform code style conventions. … There are just a few rules, … and they're also very well documented … on the Terraform website. … Here's an example from the Terraform docs. … We'll walk through it to illustrate … some of the style suggestions. … The proper indentation in a Terraform file, … is two spaces, rather than a tab. … Some editors will let you set that … as the default for a .tf files. … This first line of the resource … is what's called a meta-argument, … which we haven't actually talked about yet. … A standard argument defines something … that Terraform will ultimately pass along to AWS, … or whatever provider you're using. … A meta-argument defines a behavior … of how you want Terraform to interpret your code. … In this case, Terraform will deploy two instances … based on this meta-argument. … Another common use of meta-arguments is to explicitly define …
- Setting up Terraform
- How Terraform works
- Core Terraform commands
- Leveraging style conventions to keep code readable
- Configuring security groups
- Adding load balancers
- Using variables in your code
Skill Level Beginner
1. First Steps with Terraform
2. Terraform in Action
3. Infrastructure as Code
4. Advanced Topics
Next steps3m 31s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.