kubeform.dev/terraform-backend-sdk@v0.0.0-20220310143633-45f07fe731c5/terraform/testdata/plan-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. The value of this
     7    # is unknown during plan, but we should still know that the unknown value
     8    # is a list of strings and so catch this during plan.
     9    ami = "${aws_ami_list.foo.ids}"
    10  }