terraform/website/source/intro/examples/count.markdown

496 B

layout page_title sidebar_current
intro Count examples-count

Count Example

Example Contents

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 a list of resources for use elsewhere.

As with all examples, just copy and paste the example and run terraform apply to see it work.