2016-09-04 00:26:49 +02:00
|
|
|
resource "test_instance" "foo" {
|
2018-10-14 18:21:31 +02:00
|
|
|
count = 5
|
2016-09-04 00:26:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "test_instance" "bar" {
|
2018-10-14 18:21:31 +02:00
|
|
|
# This is invalid because timestamp() returns an unknown value during plan,
|
|
|
|
# but the "count" argument in particular must always be known during plan
|
|
|
|
# so we can predict how many instances we will operate on.
|
|
|
|
count = timestamp()
|
2016-09-04 00:26:49 +02:00
|
|
|
}
|