Your webservers are balancing load, but they don't respond dynamically. Refactor the code to use an autoscaling group to respond to changes in load by deploying more servers.
(bright techno music) … - [Instructor] For this challenge, … I want you to replace the instance resources … with an auto-scaling group. … Now, if you haven't used auto-scaling groups before … in AWS, this one may be a bit confusing, … so feel free to peek at the solution … before you tackle it or just skip it altogether. … One hint is that you can pretty much … copy and paste a large portion of this … from the Terraform docs. … I'll also include a copy of that code … in the exercise files for this lesson, … just in case Terraform decides to change their docs. … It's not the first example in the docs … for auto-scaling group. … You have to look a little further down. … It's a simple one. … I think it's the second one. … The next hint is that that example code is missing … something, which is the vpc_zone_identifier argument. … This argument takes a list of subnets that you've defined. … So, even though its called zone identifier, … you actually need to use the subnets that we just defined. …
- 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.