-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
terraform 1.10 causes "Error: Unsupported argument" on module source that worked with terraform 1.9 #36132
Comments
This information from the trace log may be of interest
|
Hi @jamiekt Running 1.10.0
Can you share the output from Thanks. |
Hi @radeksimko ,
that its using 1.10. |
I noticed these lines in the TF_LOG trace output which may or may not be significant
|
Hi @jamiekt, Though it worked for some releases, the The subdirectory portion of the module sources documentation shows the correct format, where the subdirectory is part of the path, preventing it from being interpreted in the query parameters. You should be able to use the following to correctly get your module:
|
Thank you @jbardin , you're spot on of course. I've found 30 instances of this faulty code across our org so there have been quite a few failures. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version
Terraform Configuration Files
I haven't been able to build an easily distributable repo. The problem is only occurring in our private repos. We have multiple occurrences of it happening though and they're all referring to the same module source so I'm providing the source here in case it helps. Note that the problem occurs when running
terraform validate
as well asterraform plan
A module that uses the module source is:
and the module source (which is where we think the problem is occurring) is over the following 4 files:
main.tf:
outputs.tf:
terraform.tf:
vars.tf:
Debug Output
https://gist.github.com/jamiekt/f8e9c59ce3605e72446b238e1cb49e82
Expected Behavior
When using terraform 1.9
terraform validate
ran successfully. We expect the same to happen with terraform 1.10Actual Behavior
When using terraform 1.10 the same command fails with:
Steps to Reproduce
terraform init
terraform validate
Additional Context
The error occurs when running in a GitHub Actions workflow
References
No response
The text was updated successfully, but these errors were encountered: