From the course: Terraform: Managing Network Infrastructure
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Using Terraform to provision EC2 instances - Terraform Tutorial
From the course: Terraform: Managing Network Infrastructure
Using Terraform to provision EC2 instances
- [Instructor] As we start tweaking the network in later videos we're going to need a way to do reachability testing. In this video, we're going to spin up two EC2 instances with Terraform, and the first step is generating some SSH keys. I'm going to create a folder called Keys in my current working directory and generate the keys there. There we go. Now we're going to look at the flow of information coming in. So you're going to notice that we have some new input variables. The first one is going to be for our instance names. It's going to be a list of strings, similar to how we did subnets in the previous video. And then we have instance type AMI, ID and public key. Now let's look at the corresponding values. So for the instance type, we're going to use T3 Nano. This is a great instance type for free tier usage. You're going to get a lot of hours out of it. And then we have the AMI ID for canonicals of Ubuntu. And then…