← Terraform & Infrastructure as Code learning pathTerraform & Infrastructure as Code · Module 2 of 10
Terraform basics
Write your first Terraform configuration.
📖 Key ideas
- Files end in .tf and use HCL (HashiCorp Configuration Language).
- Providers connect to platforms: aws, google, azurerm.
- Resources define things to create: resource "aws_s3_bucket" "site" { ... }.
- Workflow: terraform init → plan → apply → destroy.
- terraform fmt formats; validate checks syntax.
💡 Real-life example: Terraform is a contractor: you hand over the plan (.tf), it shows a quote (plan), then builds (apply).
HCLHashiCorp Configuration Language
ProviderPlugin for a platform API
ResourceInfrastructure object to manage
terraform applyMakes the changes