Terraform code can be abstrated out into a structure called modules. Take a look at the core syntax and how to work with modules.
- [Instructor] Modules are a Terraform feature … that lets you combine some of your code … into a logical group that can be managed together. … With a module, you can bundle together … some logical block of code, and then pass in … arguments that apply for that block. … So, in that sense, you might actually … think of modules as working a bit like custom resources. … All Terraform code actually has at least one module. … That is the default module, which is known as root. … This is where we've been working … and writing our code so far in this course. … Let's start with modules by looking … at the code for using a module. … Now, imagine you've got a web app … that needs a few things, maybe a DNS entry. … An EC2 instance and an S3 bucket. … It doesn't really matter to us … what's inside the module right now. … We just need to know how to talk to it. … Now, first, we need to tell Terraform … where to actually find the module. … In this case, it's just a local directory. … Then, we're passing in two arguments. …
- 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.