Why Terraform?
Infrastructure as Code (IaC) is the only way to ensure cost optimization is repeatable and auditable.
The FinOps Provider Configuration
We will set up our provider.tf. We will learn how to use variables to toggle between 'Development' (cheap) and 'Production' (high performance) environments.
hcl variable "environment" { type = string default = "dev" }
resource "aws_instance" "web" { instance_type = var.environment == "prod" ? "t3.large" : "t2.micro"
...
}