Time
2 hours 48 minutes
Difficulty
Intermediate
CEU/CPE
3

Video Transcription

00:00
Good morning. Good afternoon. Good evening. Wherever you are, we're gonna be talking about provisions. Er's so up here, you can see I'm on the get hub site. And before we dive deep into the particulars of provisional is what they are, what they're used for.
00:14
I want to touch on this utility within terra form called the Graph utility. If you navigate to the get hub page that I've set up, you'll see a link here to the graph is online. Go ahead and click that link, and then we're gonna shoot back over to our, um I D e
00:32
and open up the directory associated with this module as well.
00:37
And before I jump into all the details off the main terra form file, you'll see there's a lot. There's a lot going on in this file on DWI will touch on what these different things mean, but it's gonna be a common situation where you will inherit a terra form file that was maybe created by someone else.
00:56
Has a lot going on.
00:58
Or maybe there's a lot of spread across multiple different terra form files, and you want to just get a feel for or a gauge on an understanding of what the heck is going on in the file. This particular technique is very helpful in understanding the interdependencies
01:17
between the variety of resource is defined in your terra form file.
01:19
So I want to take a little bit of time here and explore this because it's a very helpful utility. As you start working in more enterprise grade type, terra form situations where you have collaboration across multiple different team members. First thing I'm going to do from the command line in this directory is run the Terra Forman it process. Excuse me?
01:42
This downloads installs although providers and so forth. Then I'm gonna run a another terra form command told to inform graph
01:51
and you can see here it spits out essentially Ah, Jason, it's in a particular format. So what you're gonna go ahead and do is copy this these materials that were spit out and we're gonna go back to this graph viz online,
02:08
and you're gonna paste that Jason material
02:12
over on your left pain and then on the right pain is gonna render ah diagram for you. I've already gone ahead and done that in this circumstance, and you can see it over here on the right. I did a PNG, so it's a little bit bigger and you can't even see it.
02:28
What you can tell from this quickly is, is we have root note, which is where everything starts in terra form
02:34
and then it's breaking it down in understanding. Okay, here are different. Providers will talk about the provisions er's and so forth in a moment
02:42
and in the relationships between all the different parts of the note. So it's really good utility for exploring and understanding what you've inherited. It's even very helpful when you're trying to understand a module. So you're using one of the community models and you're not quite clear on what are all the different resource is this thing's going to create for you and the relationships.
03:01
This utility is is very helpful method of visualizing because we can see we have ah sub net being created, and that depends on this here, which is part of a virtual network which is associated ultimately to the resource group. And we know a nazar all as a resource is sit under a particular resource group.
03:22
We could see a public I P is being created, that public I p,
03:24
is relying on random. So somehow in this when we're creating the public I p for the D. N s name, we're using the random value of variable. We can see the virtual machine being created, the dependencies it has on different variables. We can see it as dependencies on provisions which will be talking about, particularly in this module.
03:44
Um, it just gives you a really good
03:46
overview off all the different parts coming together. So I wanted to spend a moment on that, and you may find it helpful as you're working in and starting to encounter terra form scripts, which you weren't initially offering.

Up Next

Fundamentals of Terraform

In this Terraform training course, students will learn the basics of the tool through hands-on labs, become comfortable with its core language features, learn how Terraform fits into the cloud tooling landscape.

Instructed By

Instructor Profile Image
James Leone
Cloud, IoT & DevSecOps at Abbott
Instructor