Count, although simple, can lead to some pretty large issues when trying to make modifications to your deployments. Even though it can cause problems, you will probably still see it in plenty of terraform code over the course of your career. So it's good we covered it, but let's start moving towards a much better alternative, for_each. We'll start with some basic theory on how for_each works and why it is like it is, then we'll move into refactoring our deployment. So let's get started. 

Complete and Continue