You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I appreciate you reporting this, and I'm sorry this behavior isn't more obvious.
I think that what you're running into here is that functions always run at the very beginning of a terraform run, before any resources are created at all. I totally understand what you're trying to do here, but it won't work like this because files referenced by Terraform functions must exist before the terraform run starts.
I'm going to close this because I created a meta-issue tracking this broader category of issue - I probably triage about an issue a day relate to this, and it's time to start gathering data for a refactor, better documentation, better error messages, something to make this behavior more obvious.
If you want more guidance on how to work around this, your best bet is to seek support on the community forum.
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.
ghost
locked and limited conversation to collaborators
Jul 6, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
enhancementv0.12Issues (primarily bugs) reported against v0.12 releases
Terraform Version
Terraform Configuration Files
main.tf
input.tfvars
Expected Behavior
Actual Behavior
Call to function "templatefile" failed: no file exists at my_template_1.json
Steps to Reproduce
The text was updated successfully, but these errors were encountered: