Extract leading comments for resources and modules

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
Khosrow Moossavi
2021-09-29 13:55:50 -04:00
parent 5f00545aac
commit f3c92384a1
26 changed files with 196 additions and 55 deletions

View File

@@ -50,6 +50,8 @@ terraform {
}
}
// this description for tls_private_key.baz
// which can be multiline.
resource "tls_private_key" "baz" {}
resource "foo_resource" "baz" {}
@@ -68,6 +70,7 @@ module "bar" {
version = "4.5.6"
}
# another type of description for module foo
module "foo" {
source = "bar"
version = "1.2.3"