diff --git a/docs/config/README.md b/docs/config/README.md index 8d5876ff..ff52a53f 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -2244,7 +2244,7 @@ If you still want to enable it, [follow the example shown below](#with-version). The module will be shown if any of the following conditions are met: - The current directory contains a `.terraform` folder -- Current directory contains a file with the `.tf` extension +- Current directory contains a file with the `.tf` or `.hcl` extensions ### Options diff --git a/src/modules/terraform.rs b/src/modules/terraform.rs index e12aa3a9..95d3706e 100644 --- a/src/modules/terraform.rs +++ b/src/modules/terraform.rs @@ -16,7 +16,7 @@ pub fn module<'a>(context: &'a Context) -> Option> { let is_terraform_project = context .try_begin_scan()? .set_folders(&[".terraform"]) - .set_extensions(&["tf"]) + .set_extensions(&["tf", "hcl"]) .is_match(); if !is_terraform_project {