mirror of https://github.com/hashicorp/terraform
parent
d2e15ab69a
commit
60f212b73e
@ -0,0 +1,11 @@
|
||||
variable "foo" {
|
||||
default = "2"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
count = "${var.foo}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
foo = "${aws_instance.foo.count}"
|
||||
}
|
||||
Loading…
Reference in new issue