file.content

Content renders content to disk

Example

param "message" {
  default = "Hello, World in {{param `filename`}}"
}

param "filename" {
  default = "test.txt"
}

file.content "render" {
  destination = "{{param `filename`}}"
  content     = "{{param `message`}}"
}

Parameters

  • content (string)

Content is the file content. This will be rendered as a template.

  • destination (required string)

Destination is the location on disk where the content will be rendered.