Add a second webserver instance and a load balancer to spread traffic across both instances, learn how in this video.
[Instructor] Amazon has a few options for load balancers. … The newer type, ALBs, are actually amazingly powerful, … but the configurations and concepts are complex enough … that they aren't really well suited … to an intro course on terraform. … So we'll just be using the classic ELB type … so that we don't get too lost … in Amazon-specific technical details. … Let's go ahead and jump right into our code. … Before getting into the ELB, … we'll need to set up our default subnets. … Now this is something we could've done earlier, … but I just didn't think it was worth adding another layer. … But we'll need it at this point, so let's add them in. … These resources work in the same way … as that AWS default VPC resource. … That is they don't create anything, … they just go and adopt what already exists, … what Amazon creates by default. … But in this case we can create one per availability zone … in each region. … And I'm just going to stick to my own region. … US west two actually has four availability zones, …
- 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
DevOps Foundations: Infrastructure as Codewith Ernest Mueller2h 6m Intermediate
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.