official definition: Terraform is an open-source tool that automates the management and provisioning of infrastructure in any cloud or data center.
my definition: Terraform is a build tool similar to vite / grunt that helps your code to be placed into a platform like aws.
why use terraform: a good reason to use terraform is to automate creation and destruction of an infutructure with ease and because the build tool has a validation built in, the code comes out clean.
how to use terraform (locally)
first install terraform
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
then run
# terraform -help
if you get the help, you are good.
ones you are good with terraform, the next step would be to install a provider (aws in this case)