It is very simple to use it:
resource "local_file" "cat" { filename = "/tmp/cats.txt" content = "We love cats!" }
cat /tmp/cats.txt