-
-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow all file types in terraform check
goal
#21506
Labels
Comments
frekw
added a commit
to frekw/pants
that referenced
this issue
Oct 8, 2024
Closes pantsbuild#21506. It's pretty common to want to include other types of files in a Terraform module (such as json configuration, sql files and such) and use them from Terraform by loading them via `file`. Some examples from the repository I'm currently working on are: .json, .sql, .zed (SpiceDB schema), so I think it makes sense to allow for any file extensions here.
You can use a resources(name="certs", sources=["*.cer", "*.crt"])
terraform_module(dependencies=[":certs"]) This is similar to other backends work, where the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Currently, the terraform backend only supports
*.tf
files. There are a lot of situations where other file types are necessary, such as when keeping configuration for some system in a.json
or some other format, which is then read by the Terraform module.I think it would be good to relax this constraint to support any and all filetypes, but keep the default to
*.tf
as to not have undesired consequences.Pants version
2.21.0.rc0
OS
Linux
Additional info
n/a
The text was updated successfully, but these errors were encountered: