-
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
depends_on broken for Data template_file #9086
Comments
I am having the same issue on v0.7.7. |
I'm unable to reproduce this. The ordering happens properly for me. If you have any additional reproduction info please let me know! |
The actual issue is not in |
Just encountered this one too. Heres to recreate:
The data.template_file will fail as it will say ${path.module}/hello.txt doesn't exist despite the depends_on being stated. |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
v0.7.4
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/stongo/1c4c16773d8b8189215c3fd48054c729
Expected Behavior
The
depends_on
directive should still be obeyed or else panic if it's not allowed. In this case thenull_resource.discovery_token
should complete before data template is updated.If not allowed, please restore it's functionality as templating becomes very limited without any control structure.
Actual Behavior
The template data is updated before
null_resource.discovery_token
executesSteps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered: