Learning terraform hands-on with interesting projects and infrastructure
To Install terraform
as a CLI check the installation guide provided by Hashicorp Terraform
-
Version
: Once installed, check if the installation was successfulterraform -version
-
Init
: To Initialize providers and plugins:terraform init
-
Validate
: To Validate the configuration:terraform validate
-
Apply
: To Apply changes and create the resources:terraform apply
-
Show
: To show the current state configurationterraform show
-
Destroy
: To Destroy the resources:terraform destroy
-
Refresh
: To refresh the statefiles with the remote changesterraform refresh
-
Console
: To print the values of the variables (type exit to exit)terraform console
-
FMT
: To format the terraform expressionsterraform fmt
- Blocks in terraform (hello world)
- TF-JSON in terraform
- Multi-Blocks in terraform
- File Destructuring
- Variables in terraform
- Variable Types in terraform
- Variable input list in terraform
- Functions in terraform
- TFVARS in terraform
- Environment variables in terraform
- Initialize multiple
Github repositories
usingTerraform
- Run multiple
Docker
containers usingTerraform
- Setup a
Google Cloud VM Instance
usingTerraform
- Setup a
Kubernetes cluster
usingTerraform
andGoogle Kubernetes Engine
(GKE) - Setup a
Kubernetes cluster
usingTerraform
andElastic Kubernetes Engine
(EKS)