Count

Most cloud infrastructure deployments you encounter will have a lot of resources. However, there will be many times when there will be similar, or even duplicate, resources throughout the codebase. To keep the deployment dry and not repeat code repeatedly, you can take a few routes. The route we will cover in this lesson is the Count Meta-Argument. With count, we can tell Terraform how many copies of a resource we want, and it handles the rest…well…most of it. Let's take a look. 


https://developer.hashicorp.com/terraform/language/meta-arguments/count

Complete and Continue