In order for your code to scale to more than a single instance, you need to change some settings and decouple the resources. Learn about how to visualize those changes by rendering your resrouce graph.
- [Instructor] Now that we've got a standalone … web server up and running, … let's get our infrastructure set up to scale. … This is also the place where we need to start thinking … a bit more about the internal logic of the code … and resources. … Let me open up our code just to look at. … So we're looking here at the elastic IP. … Because that elastic IP is assigned … right inside the definition, … we can't easily scale those web servers … to two without duplicating the code. … We'd have to duplicate both the instance block … and the elastic IP block. … Let me generate a graph so that we can look … at the problem in a visual way. … So, terraform graph, and then I'm going to actually apply … kind of a quick and dirty filtering … that you can do on the output. … I don't know if this is really recommended, … I'm sure it's not in fact, but it seems to work okay. … So, I'm going to pipe this into grep … and then use -v, and that means to exclude things … that match what I'm going to say. …
- 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.