Terraform tracks what's going on with your infrastructure using a statefile. Learn about how state works and how to easily look at the current state in Terraform.
- [Instructor] You'll often run into the term state … when working with Terraform. … It shows up even in the output … of the command line application. … But what exactly does state mean for Terraform? … By and large, Terraform State means what it sounds like, … the state of your resources in Terraform. … But it's important to realize … that it's used to refer to two different things. … One is the reality of your infrastructure. … What is the state of the resources on AWS? … Their IP addresses, their instance types, … bucket names, et cetera. … It also refers to the local representation … that Terraform keeps, called the state file. … It's entirely possible for those two to be out of sync, … and Terraform doesn't know … until it refreshes its local state. … Let's hop in to command line terminal … and take a look at the state file. … You can inspect the state file … from the most recent Terraform run directly. … It's a JSON format file called terraform.tfstate. … Let's take a look at it. …
- 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.