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:
AWS Console Guides
3h 41m
3h 41m
Terraform Fundamentals 101
1h 36m
1h 36m
Terraform AWS
2h 4m
2h 4m
Terraform HCL Fundamentals
1h 53m
1h 53m
Terraspace Fundamentals
2h 30m
2h 30m
Terraspace Cloud
2h 33m
2h 33m
Terraspace AWS Cloud
1h 43m
1h 43m
AWS EKS Kubernetes
4h 13m
4h 13m
Get full access to these great resources
All for less than the price of coffee a day
44 courses
286 lessons
46+ hours