Skip to content

Instantly share code, notes, and snippets.

@bborysenko
Last active October 11, 2020 09:13
Show Gist options
  • Save bborysenko/978fae750027465eabd0753b5e3ec16d to your computer and use it in GitHub Desktop.
Save bborysenko/978fae750027465eabd0753b5e3ec16d to your computer and use it in GitHub Desktop.
Terraform Functions

Terraform Functions

  • file reads the contents of a file at the given path and returns them as a string. This function can be used only with files that already exist on disk at the beginning of a Terraform run.
  • templatefile reads the file at the given path and renders its content as a template using a supplied set of template variables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment