A structured, day-by-day hands-on upskilling journey through Terraform, covering everything from core concepts to production-ready patterns.
This repository documents my self-driven Terraform learning journey ā built day by day, commit by commit. Each folder (day1 through day7) represents a focused learning session where I implemented real Terraform concepts from scratch using HashiCorp Configuration Language (HCL).
This is not just theory ā every concept here is written, tested, and version-controlled as working code.
Terraform/
āāā day1/ # Terraform basics & first provider configuration
āāā day2/ # Providers, state, variables, functions & debugging
āāā day3/ # Resource blocks, attributes & dependencies
āāā day4/ # Variables, locals & outputs
āāā day5/ # State management & remote backends
āāā day6/ # Modules ā reusability & composition
āāā day7/ # Advanced patterns, functions & debugging
āāā .gitignore # Excludes sensitive .tfstate and .tfvars files
āāā README.md
- What is Infrastructure as Code (IaC) and why it matters
- Installing Terraform and configuring the first provider
- Understanding
terraform init,plan, andapply - Writing and deploying the first
.tfconfiguration file
- Understanding providers and how Terraform connects to AWS, Azure, GCP, and other platforms
- Learning how Terraform state tracks deployed infrastructure
- Using
required_providersto lock provider sources and versions - Creating reusable configurations with input variables and output values
- Adding simple logic with conditional expressions
- Using built-in functions for strings, lists, maps, and type conversion
- Debugging and formatting Terraform with
validate,plan,console,TF_LOG, andfmt
- Defining cloud resources with
resourceblocks - Understanding implicit vs explicit dependencies
- Using
depends_onfor controlled provisioning order - Reading resource attributes and chaining outputs
- Declaring input variables with type constraints
- Using
localsto simplify repeated expressions - Defining
outputblocks to expose infrastructure values - Passing variable values via
.tfvarsfiles
- Understanding
terraform.tfstateand why it matters - Configuring remote backends (e.g. S3) for team collaboration
- State locking to prevent concurrent modification conflicts
- Importing existing infrastructure into Terraform state
- Structuring configurations as reusable modules
- Passing inputs and consuming outputs across modules
- Using the Terraform Registry for community modules
- Root vs child module patterns
- Using built-in functions (
lookup,merge,format, etc.) - Conditional expressions and dynamic blocks
terraform fmtfor consistent code formatting- Debugging with
terraform consoleandTF_LOG
| Tool | Purpose |
|---|---|
| Terraform (HCL) | Infrastructure provisioning and lifecycle management |
| Python | Helper scripts and automation utilities |
| Git / GitHub | Version control and portfolio hosting |
| .gitignore | Excludes sensitive state files and credentials |
To explore or run any of these configurations locally:
1. Clone the repository
git clone https://github.com/MohammeddJaveed/Terraform.git
cd Terraform2. Navigate to a day folder
cd day13. Initialise Terraform
terraform init
4. Preview the execution plan
terraform plan
5. Apply the configuration
terraform apply
ā ļø Note: Ensure you have Terraform installed and valid cloud provider credentials configured before runningapply.
Sensitive files such as *.tfstate, *.tfvars, and provider credential files are excluded via .gitignore. Never commit state files or credentials to version control.
Mohammed Javeed ā Software Engineer based in Dublin, Ireland š®šŖ
Passionate about building scalable, clean software and continuously levelling up across the stack ā from frontend React apps to cloud infrastructure with Terraform.
If this repository helped you or you found it interesting, consider leaving a ā ā it means a lot and helps others discover it!
Built with curiosity and consistency ā one day at a time. šļø