tflint
https://github.com/terraform-linters/tflint
A pluggable Terraform linter that can act as lsp server. Installation instructions can be found in https://github.com/terraform-linters/tflint#installation.
Setup
require'lspconfig'.tflint.setup{}
Default values
cmd = { "tflint", "--langserver" }
filetypes = { "terraform" }
root_dir = function(startpath)
return M.search_ancestors(startpath, matcher)
end