Open
Description
Link to Terraform documentation and module repos
Enhancement summary
- Resource type and data type become follow links to the matching documentation pages.
- The values for a module's source argument also become follow links for known URI formats.
This would be a major productivity benefit!
Resource Type Example
For example, if I have
resource "azurerm_resource_group" "example" {
name = "example"
location = "West Europe"
}
then make azurerm_resource_group
a follow link (CTRL+click) to https://www.terraform.io/docs/providers/azurerm/r/resource_group.html.
If a data source then azurerm_resource_group
would target https://www.terraform.io/docs/providers/azurerm/d/resource_group.html.
Module Source Example
Example module:
module "web_pool1_vms" {
source = "github.com/terraform-azurerm-modules/terraform-azurerm-linux-vm?ref=v0.1"
defaults = local.web_vm_defaults
module_depends_on = [module.web_pool1_set]
attachType = "ApplicationGateway"
attach = module.web_pool1_set.set_ids
names = ["web-pool1-a", "web-pool1-b", "web-pool1-c"]
source_image_id = data.azurerm_image.ubuntu_18_04.id
}
Make github.com/terraform-azurerm-modules/terraform-azurerm-linux-vm?ref=v0.1
a follow link to https://github.com/terraform-azurerm-modules/terraform-azurerm-linux-vm?ref=v0.1.