Introduction to Terraform

Hello Ahmedlmad

AWS EC2 refers to Amazon’s Elastic Compute Cloud, which is part of Amazon’s cloud-computing platform, Amazon Web Services (AWS). Specifically, the EC2 is a VM that you can configure and “rent” based on the resources that you specify, and you can run your own applications on. More info about this can be found here:

Now, Rene, in his video, has shown two windows, one with Terraform and one with Visual Studio. Both of these run locally on the windows machine. As far as Terraform goes, when you define the resources you want, that’s when you specify how to connect to an AWS EC2 instance. This is done within the main.tf file. You must also download the required provider plugin using the Terraform init command using that info in the main.tf file.

Once that’s done, then your Terraform terminal is connected to your AWS resource. This is all shown within the lesson.

Now how about the interaction between Visual Studio and Terraform? VS Code is simply used to edit the Terraform config files (.tf files). There’s no direct integration or communication between the programs. VS Code is simply used as an editor. Does that make sense?

If you try out the lab and perform the steps one by one it should become clearer as to how this works and how the various parts interact.

I hope this has been helpful!

Laz

1 Like