Text variables
text variables read a local file as raw text. Unlike file, the content is not parsed as structured data.
template: ${text(./message.txt)}Use text for templates, scripts, inline policy bodies, or other file contents that should stay a string. Root restrictions still apply in safe mode because this is a local file read.
See security policies for safe roots and CloudFormation and Serverless for pass-through template behavior.
Last updated on