mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-15 10:03:44 -06:00
The Terraform configuration syntax defines what arrays are. Use the word array consistently throughout the documentation instead of list. The corresponding JSON datatype is called array as well, and since the Terraform configuration syntax is interoperable with JSON it makes sense to use the term array to describe them. |
||
---|---|---|
.. | ||
main.tf | ||
outputs.tf | ||
README.md | ||
variables.tf |
Count Example
The count parameter on resources can simplify configurations and let you scale resources by simply incrementing a number.
Additionally, variables can be used to expand an array of resources for use elsewhere.
As with all examples, just copy and paste the example and run
terraform apply
to see it work.