github.com/wikibal01/hashicorp-terraform@v0.11.12-beta1/terraform/test-fixtures/apply-interpolated-count/main.tf (about)

     1  variable "instance_count" {
     2    default = 1
     3  }
     4  
     5  resource "aws_instance" "test" {
     6    count = "${var.instance_count}"
     7  }
     8  
     9  resource "aws_instance" "dependent" {
    10    count = "${aws_instance.test.count}"
    11  }