<aside> 💡 Subscribe to CloudChamp Channel: https://www.youtube.com/@cloudchamp

</aside>

What is Terraform and How it works?

Terraform is an IaC tool that lets you write code to define and manage your infrastructure.

You describe your desired infrastructure in configuration files, Terraform figures out what needs to be done to achieve that state, and then it makes it happen by interacting with cloud providers or other infrastructure platforms.

Untitled

A DevOps Engineer manually created infrastructure on AWS, and now there is a requirement to use Terraform to manage it. How would you import these resources in Terraform code?

To import existing AWS resources into Terraform, you can follow these steps:

  1. Write Terraform configuration for the resources you want to manage.
  2. Run terraform import command for each resource, specifying the resource type and its unique identifier in AWS.