github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/configs/configupgrade/testdata/valid/resource-count-ref/want/resource-count-ref.tf (about) 1 resource "test_instance" "one" { 2 } 3 4 resource "test_instance" "many" { 5 count = 2 6 } 7 8 data "terraform_remote_state" "one" { 9 } 10 11 data "terraform_remote_state" "many" { 12 count = 2 13 } 14 15 output "managed_one" { 16 value = 1 17 } 18 19 output "managed_many" { 20 value = length(test_instance.many) 21 } 22 23 output "data_one" { 24 value = 1 25 } 26 27 output "data_many" { 28 value = length(data.terraform_remote_state.many) 29 }