github.com/richardmarshall/terraform@v0.9.5-0.20170429023105-15704cc6ee35/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  }