2014-07-28 19:43:00 +02:00
|
|
|
---
|
|
|
|
layout: "intro"
|
|
|
|
page_title: "Count"
|
|
|
|
sidebar_current: "examples-count"
|
2014-10-22 05:21:56 +02:00
|
|
|
description: |-
|
|
|
|
The count parameter on resources can simplify configurations and let you scale resources by simply incrementing a number.
|
2014-07-28 19:43:00 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
# Count Example
|
|
|
|
|
2017-08-03 05:03:41 +02:00
|
|
|
[**Example Source Code**](https://github.com/terraform-providers/terraform-provider-aws/tree/master/examples/count)
|
2014-10-14 07:18:45 +02:00
|
|
|
|
2016-10-09 11:42:39 +02:00
|
|
|
The `count` parameter on resources can simplify configurations
|
2014-07-28 19:43:00 +02:00
|
|
|
and let you scale resources by simply incrementing a number.
|
|
|
|
|
2015-01-14 18:28:25 +01:00
|
|
|
Additionally, variables can be used to expand a list of resources
|
2014-07-28 19:43:00 +02:00
|
|
|
for use elsewhere.
|
|
|
|
|
2016-10-09 11:42:39 +02:00
|
|
|
As with all the examples, just copy and paste the example and run
|
2014-10-14 07:18:45 +02:00
|
|
|
`terraform apply` to see it work.
|