We explained, how to use terraform commands, terraform init , fmt , validate , plan , show , apply , output & terraform state list & refresh etc. how to find resources in terraform state file. Terraform is used to manage or provision infrastructure as code by interacting with Terraform CLI (command-line interface).