How to get the absolute path of a file or directory in terraform?

You can use terraform abspath() function to get absolute path of a file or directory. abspath() takes a string containing a filesystem path and converts it to an absolute path. That is, if the path is not absolute, it will be joined with the current working directory.

Syntax: abspath(relative_path)


Leave a Reply

Close Menu