Basics of using terraform to setup infrastructure with aws. We define our infrastructure as code and then we hand that code over to terraform and terraform is responsible for managing our entire infrastructure. how we can use terraform to manage an EC2 instance. main.tf Go to the terminal and start terrform. we can see that…