From the course: Learning Terraform

Unlock the full course today

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

Editing your code

Editing your code

- [Instructor] In this lesson, we'll be making some changes to our repo and then running Terraform again to see how it responds. We'll be covering the language in depth later. So the code that we're using will just be to uncomment some things in the starter code. First, we'll go to the GitHub repo and scroll down to variables.tf and click on it. We have a couple choices for editors here. You can just click the pencil and say Edit this file, but that creates a commit for every single file and that triggers Terraform to run on every single commit. It just gets a little bit noisy. So instead we're going to use this dropdown and say Open in github.dev. And this just gives us a more full-featured editor. We can use this to combine all of our changes into a single commit. So I'm going to just uncomment this variable block. And I think this is pretty straightforward. It says variable instance type and it has a default value here set T3 nano. So we made that change, let's also change…

Contents