github.com/eliastor/durgaform@v0.0.0-20220816172711-d0ab2d17673e/internal/durgaform/testdata/apply-count-variable-ref/main.tf (about)

     1  variable "foo" {
     2    default = "2"
     3  }
     4  
     5  resource "aws_instance" "foo" {
     6    count = "${var.foo}"
     7  }
     8  
     9  resource "aws_instance" "bar" {
    10    foo = length(aws_instance.foo)
    11  }