'In Terraform, how do I run a specific *.tf file in a directory?

Using Terraform 0.12.6

I have a directory with multiple *.tf files, e.g., product1.tf, product2.tf etc. How can I execute terraform plan and subsequently terraform apply for a certain *.tf file? I was hoping it would be the -target option but I read the docs and didn't see this mentioned.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source