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:
Azure Portal Guides
1h 41m
1h 41m
Terraform Fundamentals 101
1h 36m
1h 36m
Terraspace Fundamentals Azure
2h 22m
2h 22m
Terraform HCL Fundamentals
1h 53m
1h 53m
Terraspace Cloud
2h 33m
2h 33m
Terraspace Azure Cloud
1h 15m
1h 15m
Azure AKS Kubernetes
40m
40m
Get full access to these great resources
All for less than the price of coffee a day
44 courses
286 lessons
46+ hours