github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/terraform/test-fixtures/apply-computed-attr-ref-type-mismatch/main.tf (about)

     1  resource "aws_ami_list" "foo" {
     2    # assume this has a computed attr called "ids"
     3  }
     4  
     5  resource "aws_instance" "foo" {
     6    # this is erroneously referencing the list of all ids, but
     7    # since it is a computed attr, the Validate walk won't catch
     8    # it.
     9    ami = "${aws_ami_list.foo.ids}"
    10  }