Support auto-completion for remote state outputs
I rely a lot on remote state imports like this:
data "terraform_remote_state" "some-state-with-outputs-I-want-to-reference" {
backend = "s3"
config = {
bucket = "mybucket"
key = "terraform-state-files/some-statefile"
}
}
# Then use
data.terraform_remote_state.some-state-with-outputs-I-want-reference.outputs.some-output
It would be REALLY nice to get autocomplete for the outputs, so for example doing this and getting a list of outputs in the remote state with auto-complete: data.terraform_remote_state.some-state-with-outputs-I-want-reference.outputs.<AUTO_COMPLETE>
Is there any way to support this? You should be able to have the plugin retrieve the outputs of the state file thats being referenced and could probably cache it for performance or something right? This would be a huge productivity gain for our terraform users- its not conducive to have to switch back to the config of the state being imported to see what all the outputs are whenever we want to use them. Even if this was some setting we had to manually tweak and configure a little it would be really valuable to have.