Time
2 hours 48 minutes
Difficulty
Intermediate
CEU/CPE
3

Video Transcription

00:00
So what? The deployment Now complete.
00:02
Let's just take a look over at Azar and see, uh, what was actually created in the system.
00:09
I'm gonna navigate over here to the resource groups in the average or console Terra Form Modules. Resource Group. That was the name of the resource group that was created as a result of the Terra form script we just ran. We could see that there's a whole lot, right. We use the virtual network module and that set up a virtual network in various sub nets.
00:28
We could use a computer model module to set up the virtual machine,
00:33
but you can also see take rear of creating other resources for us, such as a network security group which is going to set up rules around this virtual machine.
00:44
Created public I P addresses. Excuse me. This first network security group is relative to the virtual network. Where is the second network Security group is related to the virtual machine. We have here availability sets, network cards and even operating system discs.
01:00
So if we didn't use these Mongols, we would have had to lay out
01:03
all of these. Resource is in defining in our care reform file. But by using these modules, we kept our terra form file quite simple. And we relied on a pattern that the modules were implementing of running with the assumption of creating a network card, creating an operating zip disk that followed a certain naming convention, creating an availability set,
01:23
putting network security groups and associating nose with the virtual machine.
01:27
Just a lot of little things that certainly add up to to create a pattern that's reusable and a pattern that we took advantage of.
01:37
At this point,
01:40
you have learned a lot about terra form. We just learned the power of modules. We've covered a lot of the basics. We've talked about the deployments thean it scripts, initialization process, different providers.
01:53
So I'm gonna review the lab activity with you here and now. The procedure give you some guidance and objective. And then when you're done building the lab in the next video, we will be exploring, and I'll demonstrate to you the my solution to the lab activity
02:10
and walk through what I did and give you a little
02:14
rationalization as to why I did it.
02:16
So our real objective of this activity is to create a desert container. Instance. You're familiar with containers. A circuit tater instance really is just a deserves way of allowing you to deploy a container. And that container gets managed so we don't have to worry about creating a virtual machine.
02:37
This isn't quite as her cue bernetti service. That would be for more clustering containers,
02:42
a little more last x scalability and so forth. We're just gonna do we just have one container? We're just gonna keep it real simple. We're gonna use these are container. Instance. When this is all said and done, you're gonna have something that's deployed you gonna be able to access it through. Ah, you are l and H D P u R l in your browser. And it's gonna look like this.
03:00
Um when? When we've done this.
03:01
So how you gonna go about this? I'll give you some touch points and some hints, but I'm hoping you can pull with all the training that we've had so far and assemble this solution to the lad activity version for most.
03:16
Put the terra form files in a separate directory. Um, because we don't want you to inherit that the terra form state some of the other downloads that we've done in the prior activity. So put your teeth filed in the separate directory. Go ahead and search that terror for module registry. The link is right here on the get home page
03:36
we're looking for Right in this circumstance is some sort of
03:42
reserve container instances, and you're gonna then locate the module that's published by the person that you like a C. I is a common acronym used for his or container instances. If you're not familiar,
03:57
you're gonna greet the Terra phone files, which buildout Thea's er container instance. Uh, you're gonna want to use a certain image this a c I Hello, world. It's on the public public Dr Registry provided by Microsoft. It's what's gonna set up the Web server and just serve back this simplistic page.
04:15
So this is the image you're gonna want to use.
04:17
And of course, you're gonna want that to configure the module such that the container is running on poor dating and listening Import 80 which is our standard. Http ports, um
04:29
finally, another key part of the activities make sure that the terra form files are producing an output and for this particular output. We wanted to be the fully qualified domain name off the Earl
04:43
that we're going to use to access and open up this in the browser to open up this container, which gives us the bolo
04:48
Web page to show us success. And then finally, that's exactly what you're gonna do. You're gonna take that fairly quiet, qualified domain name that is an output when you run the deployed process and you're gonna open it up in your browser.
05:01
And once again, it should look like this. So go ahead, pause the video. Take a deep breath. Think about how you're gonna go about this. Create a new fresh directory. Open up. A main dot T f file is a starting point in your I d on. And your first step is gonna be adding there's there, are in provider, right?
05:20
And then, from there you can
05:24
extended and find the appropriate modules that that you were able to locate through the Terra form registry. That'll help you set up this container Instance. So thank you. I look forward to returning shortly and reviewing the lab activity outcomes

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