vscode-terraform icon indicating copy to clipboard operation
vscode-terraform copied to clipboard

Install/upgrade a module via code lens

Open radeksimko opened this issue 3 years ago • 0 comments

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:

Screenshot 2021-06-21 at 15 44 52

Proposal

  • TODO: create issue in core for targeting modules for upgrade/installation
  • https://github.com/hashicorp/terraform-ls/issues/685

radeksimko avatar Jun 21 '21 14:06 radeksimko