Terraform HCL Loops With count and for_each
            
        In this video, we'll cover Terraform looping constructs. Terraform is declarative, so it's looping structure may seem weird to those used to procedural programming loops. There are a few ways to performing looping with Terraform. We'll cover the looping constructs that specifically work at the resource level. They handle resource creation itself. There are two of them.
- count: This is often brought up when talking about looping with Terraform.
 - for_each: This technique is similar to the count method but has some advantages. It should be generally used over count. We'll explain why in this video.
 
Links:
    
      Terraform Fundamentals 101
      
      
    
    
      
        1h 36m
      
    
  
  
        1h 36m
      
    
    
      Terraform HCL Fundamentals
      
      
    
    
      
        1h 53m
      
    
  
  
        1h 53m
      
    
    
      Terraspace Install Guides
      
      
    
    
      
        8m
      
    
  
  
        8m
      
    
    
      Terraspace Fundamentals
      
      
    
    
      
        2h 30m
      
    
  
  
        2h 30m
      
    
    
      Terraspace Cloud
      
      
    
    
      
        2h 33m
      
    
  
  
        2h 33m
      
    
    
      Terraspace Terrafile
      
      
    
    
      
        29m
      
    
  
  
        29m
      
    
    
      Terraspace and Terragrunt
      
      
    
    
      
        19m
      
    
  
  
        19m
      
    
    
      Terraspace AWS Cloud
      
      
    
    
      
        1h 43m
      
    
  
  
        1h 43m
      
    
    
      Terraspace Azure Cloud
      
      
    
    
      
        1h 15m
      
    
  
  
        1h 15m
      
    
    
      Terraspace Google Cloud
      
      
    
    
      
        1h 12m
      
    
  
  
        1h 12m
      
    
    
      Terraspace OnPrem
      
      
    
    
      
        16m
      
    
  
  
        16m
      
    
    
      Terraspace Testing
      
      
    
    
      
        47m
      
    
  
  
        47m
      
    
    
      Terraspace Development
      
      
    
    
      
        24m
      
    
  
  
        24m
      
    Get full access to these great resources
All for less than the price of coffee a day
44 courses
        286 lessons
        46+ hours