mirror of https://github.com/hashicorp/terraform
This variable name is now reserved so we can support the count meta-argument inside module blocks in a later release.f-hcl2-planstate
parent
5a3eff3d2e
commit
602c8664bb
@ -1,10 +1,10 @@
|
||||
variable "count" {}
|
||||
variable "instance_count" {}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
count = "${var.count}"
|
||||
foo = "foo"
|
||||
count = var.instance_count
|
||||
foo = "foo"
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
foo = "${join(",", aws_instance.foo.*.foo)}"
|
||||
foo = join(",", aws_instance.foo.*.foo)
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
variable "count" {
|
||||
variable "instance_count" {
|
||||
default = 3
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
count = "${var.count}"
|
||||
count = "${var.instance_count}"
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue