How to check if a file exists in terraform?

You can use terraform fileexists() function to check if a file exists in terraform. fileexists() determines whether a file exists at a given path.

Syntax: fileexists(file_path)

Example:

Leave a Reply

Close Menu