Skip to content

Commit 40b4520

Browse files
committed
add comment about main.tf
1 parent 19dbc11 commit 40b4520

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

schema/module_schema.go

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ func schemaForDependentModuleBlock(localName string, modMeta *module.Meta) (*sch
9494
if len(modMeta.Filenames) > 0 {
9595
filename := modMeta.Filenames[0]
9696

97+
// Prioritize main.tf based on best practices as documented at
98+
// https://learn.hashicorp.com/tutorials/terraform/module-create
9799
if sliceContains(modMeta.Filenames, "main.tf") {
98100
filename = "main.tf"
99101
}

0 commit comments

Comments
 (0)