From the course: Advanced Terraform

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Designing a cloud infrastructure in Terraform

Designing a cloud infrastructure in Terraform - Terraform Tutorial

From the course: Advanced Terraform

Designing a cloud infrastructure in Terraform

- [Instructor] Let's get started right away on our task. We're going to migrate an on-premise web application to the cloud. Our first step is to take a close look at the current state. We have a fairly typical three-tier architecture here. We'll need to map these resources as they exist today in our data center to cloud-based resources. We'll use Google Cloud as our example, though the same ideas would apply to any public cloud, with differing product names, of course. Let's see, first, we need a network. In GCP terms, that's a Virtual Private Cloud, or VPC. A new default VPC is created for us when we create a new project in GCP, so we can refer to it in our configuration. We could delete that default VPC and define our own if we wanted, but we'll keep it simple for now. We'll also need to define a subnet for the virtual machines we're going to create. That will be defined as a child of the VPC. This is a public-facing…

Contents