From the course: AWS Global Networking in Terraform

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Demo: Deploy single VPC network

Demo: Deploy single VPC network

- Now that we have all of the prerequisites in place, it's time to go ahead and deploy a single VPC network in one of the regions. We're going to go ahead and pick us-east-1 first. We have three choices: I've got ap-east-1, us-east-1, and us-west-2. We'll pick us-east-1. You notice here there's nothing in the prod directory, just like under global. So we're going to go straight down into main and then we have a little bit more files than what we've seen elsewhere. And so what we're going to do, let's take a look at here first backend, just so that we can see that the key for the S3 object is going to match our us-east-1/prod/main directory. Otherwise, everything else is identical. We have region which I've chosen to use instead of provider because this is specific for AWS. So we set our provider to AWS with the region of us-east-1 and that becomes the default for every resource that we deploy out of this directory unless we chose to overwrite it. We also have a new file called…

Contents