vscode-terraform
vscode-terraform copied to clipboard
Install/upgrade a module via code lens
Problem Statement
Terraform users can define a module version constraint via the version
argument of a module
block. For example:
module "eks" {
source = "terraform-aws-modules/eks/aws"
version = "~> 17"
}
User can then install the latest module version via terraform get
or upgrade to the latest version via terraform get -update
, but often times (esp. when they're just consumers but not maintainers of the upstream module) they may not be aware that new version of a module was released.
Users would benefit from knowing that the module they're looking at is upgradable and from being able to upgrade it directly from the IDE.
Expected User Experience
The UI is expected to leverage the native code lens feature of VS Code in a similar way to gopls & VS Code Go extension:
Proposal
- TODO: create issue in core for targeting modules for upgrade/installation
- https://github.com/hashicorp/terraform-ls/issues/685