Terraform Certification Exercises
This directory contains hands-on exercises to help you prepare for the HashiCorp Terraform Associate certification. Each exercise focuses on specific Terraform concepts that are covered in the exam.
Exercise Structure
Each exercise directory contains:
- A README.md file with detailed instructions
- A solution directory with working example code
- AWS and GCP implementations for comprehensive learning
Available Exercises
- First Configuration
- Learn how to create basic Terraform configurations
- Understand provider setup and resource creation
- Execute the Terraform workflow
- Variables and Outputs
- Work with different variable types
- Implement variable validation
- Create useful outputs
- Use local values
- Resource Dependencies
- Understand implicit and explicit dependencies
- Use the
depends_onmeta-argument - Manage resource creation order
- Handle resource replacement
- Working with State
- Manage Terraform state
- Use state commands
- Implement remote state
- Handle state locking
- Modules
- Create and use Terraform modules
- Pass inputs and receive outputs
- Implement module versioning
- Use modules from the registry
- Meta-Arguments
- Use count and for_each
- Implement lifecycle rules
- Configure multiple providers
- Use dynamic blocks
Prerequisites
- Terraform installed (v1.0.0 or newer)
- AWS account with appropriate permissions (for AWS exercises)
- Google Cloud account with appropriate permissions (for GCP exercises)
- Basic understanding of cloud services
How to Use
- Start with Exercise 1 and work your way through sequentially
- Choose your preferred cloud provider (AWS or GCP)
- Read the README.md in each exercise directory
- Complete the tasks and additional challenges
- Check the solution for reference
Happy learning!