Difference between revisions of "Error: Invalid function argument (no file exists)"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
│ 626: template = "${file("[[buildspec.yaml]]")}" | │ 626: template = "${file("[[buildspec.yaml]]")}" | ||
│ | │ | ||
− | │ Invalid value for "path" parameter: no file exists at buildspec.yaml; this function works only with files that are distributed as part of the | + | │ Invalid value for "path" parameter: [[no file exists]] at [[buildspec.yaml]]; this function works only with files that are distributed as part of the |
│ configuration source code, so if this file will be created by a resource in this configuration you must instead obtain this result from an | │ configuration source code, so if this file will be created by a resource in this configuration you must instead obtain this result from an | ||
│ attribute of that resource. | │ attribute of that resource. |
Revision as of 08:34, 21 September 2021
╷ │ Error: Invalid function argument │ │ on main.tf line 626, in data "template_file" "buildspec": │ 626: template = "${file("buildspec.yaml")}" │ │ Invalid value for "path" parameter: no file exists at buildspec.yaml; this function works only with files that are distributed as part of the │ configuration source code, so if this file will be created by a resource in this configuration you must instead obtain this result from an │ attribute of that resource. ╵
See also
Advertising: