In this lesson dig deeper into Terraform apply, the command line options you might use, and how to interpret the output.
- [Instructor] We ran terraform apply early on … just to kind of get things going, … but in this lesson, we're going to dig a little bit deeper. … To begin, let's go ahead and regenerate that plan … and then apply it using an output file. … So first you'll need to do a destroy plan … since the resources have already been created. … So terraform plan dash destroy dash out equals example.plan. … So now that we've generated that, … we can run terraform apply … and then just example.plan. … You'll notice that this time, … unlike when we first ran it, … we weren't prompted for a yes/no response. … When you split them out like this, … Terraform assumes that you want to go ahead … and apply the changes that you just told it to apply. … Now, you might be wondering what happens … if you run the same apply again, so let's try it. … We're just going to apply the exact same thing. … As you can see, … Terraform knows that this plan is stale … so it won't let you reapply. … The resources have already been deleted, …
- 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.