Skip to content

deepraj1729/learning-terraform

Repository files navigation

learning-terraform

Learning terraform hands-on with interesting projects and infrastructure

Installation:

To Install terraform as a CLI check the installation guide provided by Hashicorp Terraform

Commands:

  1. Version: Once installed, check if the installation was successful

     terraform -version
    
  2. Init: To Initialize providers and plugins:

     terraform init
    
  3. Validate: To Validate the configuration:

     terraform validate
    
  4. Apply: To Apply changes and create the resources:

     terraform apply
    
  5. Show: To show the current state configuration

     terraform show
    
  6. Destroy: To Destroy the resources:

     terraform destroy
    
  7. Refresh: To refresh the statefiles with the remote changes

     terraform refresh
    
  8. Console: To print the values of the variables (type exit to exit)

     terraform console
    
  9. FMT: To format the terraform expressions

     terraform fmt
    

Basics:

  1. Blocks in terraform (hello world)
  2. TF-JSON in terraform
  3. Multi-Blocks in terraform
  4. File Destructuring
  5. Variables in terraform
  6. Variable Types in terraform
  7. Variable input list in terraform
  8. Functions in terraform
  9. TFVARS in terraform
  10. Environment variables in terraform

Projects:

  1. Initialize multiple Github repositories using Terraform
  2. Run multiple Docker containers using Terraform
  3. Setup a Google Cloud VM Instance using Terraform
  4. Setup a Kubernetes cluster using Terraform and Google Kubernetes Engine (GKE)
  5. Setup a Kubernetes cluster using Terraform and Elastic Kubernetes Engine (EKS)

About

Understanding basics of terraform to advanced concepts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages