<#18466 How to enable tailoring for Terraform subs...
# github-notifications
c
#18466 How to enable tailoring for Terraform subsystem? New discussion created by ndellosa95 Hello, I am currently evaluating Pants as an option for my team's monorepo. Setting up everything has been easy so far, but I am struggling to figure out how to get Pants to recognize our terraform files?
pants tailor ::
doesn't seem to pick them up and the documentation on the terraform subsystem is somewhat scarce. I see this option here, however it also says it is true by default. Below is the content of my pants.toml:
Copy code
[GLOBAL]
pants_version = "2.15.0"
backend_packages = [
    "pants.backend.python",
    "pants.backend.experimental.java",
    "pants.backend.experimental.scala",
    "pants.backend.experimental.terraform"
]

[source]
root_patterns = [ "src", "terraform" ]
marker_filenames = [ "setup.py" ]

[jvm]
jdk = "termurin:1.17.0.6"

[scala.version_for_resolve]
jvm-default = "2.13.8"
And my directory structure is as follows. Notice the directory structures are slightly different for Python vs. Java/Scala. I'm assuming this is allowed. I did try removing the Python project but still no dice.
Copy code
scalaproject/src/main/scala/**/*scala
scalaproject/src/test/scala/**/*.scala
scalaproject/terraform/environments/dev.*.tf
pyproject/toplevelpypackage/**/*.py
pyproject/setup.py
pyproject/terraform/environments/dev.*.tf
Running
pants roots
from the root directory of the repo returns the following:
Copy code
.
pyproject
scalaproject/src
Apologies if it's something obvious! pantsbuild/pants