github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/validate-computed-in-function/main.tf (about)

     1  data "aws_data_source" "foo" {
     2      optional_attr = "value"
     3  }
     4  
     5  resource "aws_instance" "bar" {
     6      attr = "${length(data.aws_data_source.foo.computed)}"
     7  }