-
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
file function argument interpolation error #213
Comments
Interesting, I'm not sure yet where this is happening but its certainly a bug somewhere. Tagged. |
Which syntax should be correct? |
The first/top one should work. The rest should be invalid. |
Fixed: 4a3dff2 |
I'm still actually getting a syntax error with the top entry. Seems to happen regardless of whether or not the path is valid, points to an empty file, contains sub-directories, etc. The error also seems mention the wrong line number. |
Are you sure you compiled with my fix? I just used it in a real TF file without isuse. |
I'm using the master branch at 5b620b7 and still having the issue. It's reporting:
Oddly, there is no line 22 in that file. If I remove this statement:
It works. |
Of note, in just HCL, attempting to decode this line:
Results in a syntax error as well. Perhaps it's something lower level than Terraform? Thanks for your help with this! |
That could be possible, let me see. |
Ah you're right, I was testing with a bad branch. Errr. I know whats going on here. |
Fixed upstream, please try again! |
how to use user_data in terraform : |
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. |
I'm attempting to load the value of the
user_data
attribute of an AWS instance resource from a local file. I've run into some strange behavior regarding the argument passed to thefile
function.... throws a syntax error.
... also throws a syntax error.
... sets the user data to the uninterpolated string,
${file('user-data/ssh-gateway.yml')}
.... sets the user data to the uninterpolated string,
${file(user-data/ssh-gateway.yml)}
.The text was updated successfully, but these errors were encountered: