A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.hashicorp.com/terraform/language/functions/fileexists below:

fileexists - Functions - Configuration Language | Terraform

fileexists determines whether a file exists at a given path.

Functions are evaluated during configuration parsing rather than at apply time, so this function can only be used with files that are already present on disk before Terraform takes any actions.

This function works only with regular files. If used with a directory, FIFO, or other special mode, it will return an error.

> fileexists("${path.module}/hello.txt")
true
fileexists("custom-section.sh") ? file("custom-section.sh") : local.default_content
Edit this page on GitHub

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4