github.com/hugorut/terraform@v1.1.3/src/terraform/testdata/apply-destroy-data-cycle/main.tf (about) 1 locals { 2 l = data.null_data_source.d.id 3 } 4 5 data "null_data_source" "d" { 6 } 7 8 resource "null_resource" "a" { 9 count = local.l == "NONE" ? 1 : 0 10 } 11 12 provider "test" { 13 foo = data.null_data_source.d.id 14 }