Hi and welcome to this lesson, you're about to create your first terrible resource, so let's get started
inside Visual Studio Code.
Let's right click and create a new folder.
I'm going to kill this first Dasch resource inside.
We're going to right click.
I'm going to create a new file.
And this is going to be called Main Dot.
See if we can ignore this terminal down here and we can minimize the explorer, minimize this pop up
as well.
Let's focus on the code.
What we're going to do is set up our provider and you can see the autocomplete here is going to help
us.
So we're going to click on that.
And I'm going to type in eight of us then in curly brackets, we're going to set the region.
And as I've recommended, always pick the region closest to you.
I'm based in London, so it's going to be EU dash w dash two.
If you're not sure which region is closest to you, go inside the AWB council and where it says the
region dropdown and find the nearest capital closest to you.
We can go ahead and say this.
And next, let's go ahead and create a resource and watch this line operators provider.
It tells TerraForm which plug in to use and for which cloud platform are we going to create resources
for.
Now, TerraForm isn't just limited to eight of us.
You can use it for your Google cloud.
In that case, what we would do is update the provider to use a different service.
Next, let's go ahead and create our first resource.
And one thing you'll come tonight with Terfel is that it follows a very familiar pattern.
Once you realize what the pattern is, the penny's going to drop and terraform is going to be really
easy.
So let's see it.
We type in resource that in quotes the resource we want to create.
In this case, we're going to create an eight W.S. VPC database and the school VPC next.
We need to give it a name that isn't going to name the resource.
For example, it's not going to create a VPC with this name.
This is something we can use internally in TerraForm that's unique.
So Kouvelis might VPC the inside curly braces.
We could type in cider on the school block equal to an inside quotes 10 zero zero zero 16.
And there we go.
This is how we create our first resource.
So to quickly recap what's going to happen, we're going to have a provider and we've told her that
provider is going to be for us by doing that is going to allow us to create any resource we want on
each of us.
And in this case, the resource we're telling it to create is a VPC.
We've given VPC a name inside of Terraformed called My VPC.
And what we're going to create is a generic VPC with inside a block of 10 zero zero zero six.
So next we'll go ahead and get ready to deploy its.