Outputs.tf - trying to get multiple Windows passwords decrypted - using count

outputs.tf - trying to get multiple Windows passwords decrypted - using count.

Getting error message…╷
│ Error: Invalid function argument

│ on outputs.tf line 16, in output “password”:
│ 16: value = ["${aws_instance.winrm..tags.Name}", “-”, rsadecrypt(aws_instance.winrm..password_data, file(var.private_key_path))]
│ ├────────────────
│ │ aws_instance.winrm is tuple with 2 elements

│ Invalid value for “ciphertext” parameter: string required.

output.tf:
output “password” {
value = ["${aws_instance.winrm.[star].tags.Name}", “-”,
rsadecrypt(aws_instance.winrm.[star].password_data, file(var.private_key_path))]
}

note: replace [star] with *
this is a funky editor, it was removing the *
Running Terraform …Terraform v0.15.0-beta2
on linux_amd64

Also tried, a simpler form:
output Adminpassword {value = rsadecrypt(aws_instance.winrm.*.password_data, file(var.private_key_path))
}

Also getting an error message there:aws_instance.winrm is tuple with 2 elements

│ Invalid value for “ciphertext” parameter: string required.

I’ve been tinkering all weekend with this. I think it’s a bug, and reported as such here: