7.1 Dependency Graph

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *

Already have an account? Sign In »

2 hours 48 minutes
Video Transcription
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.
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
and open up the directory associated with this module as well.
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.
Has a lot going on.
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
between the variety of resource is defined in your terra form file.
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?
This downloads installs although providers and so forth. Then I'm gonna run a another terra form command told to inform graph
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,
and you're gonna paste that Jason material
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.
What you can tell from this quickly is, is we have root note, which is where everything starts in terra form
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
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.
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.
We could see a public I P is being created, that public I p,
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.
Um, it just gives you a really good
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