You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/configs/configupgrade/testdata/valid/resource-count-ref/want/resource-count-ref.tf

30 lines
391 B

resource "test_instance" "one" {
}
resource "test_instance" "many" {
count = 2
}
data "terraform_remote_state" "one" {
}
data "terraform_remote_state" "many" {
count = 2
}
output "managed_one" {
value = 1
}
output "managed_many" {
value = length(test_instance.many)
}
output "data_one" {
value = 1
}
output "data_many" {
value = length(data.terraform_remote_state.many)
}