Terraform components
Provider
The Terraform provider is basically a way that allows you to interact with the API endpoints of different cloud providers or apps or even on-prem providers such as VMWare
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = "us-east-1"
}State
The file
terraform.tfstateis where the resources that are deployed are kept track ofWe can see all or most information here as well as in the cloud

We have a few CLI tools that allows us to interact with the TFState file
Last updated