Войти
  • 14343Просмотров
  • 3 года назадОпубликованоNed in the Cloud

Choosing Between Count and For-Each

Terraform provides two ways to create multiple resources from a single configuration block: count and for_each. When should you use count? And when should you pick for_each? That's what we'll figure out together as we explore these two looping constructs and their behavior in Terraform. Terraform Certification Guide: Weekly Terraform Newsletter from Anton Babenko: ----------------------------------------------------------------------------------------------------- Daily Check-In: Day Two Cloud: Website: Pluralsight: GitHub: Music by Evan Williams ©2020 Timestamps: Intro 0:00 Count and For-Each 1:15 Count loop basics 1:52 Count loop with list 4:43 Count consistency issues 6:01 Using for-each 8:26 Referencing resources 12:01 When to use count 13:52 Summary 15:43 Outro 16:46