local_file resource in Terraform

It is very simple to use it:

resource "local_file" "cat" {
  filename = "/tmp/cats.txt"
  content = "We love cats!"
}
Run plan and apply and check the created file on target location:
cat /tmp/cats.txt