← IaC Academy

Files and artifacts · 16 / 23

Keep embedded source literal

Use a language-tagged heredoc without accidentally interpolating embedded source.

YOUR TASK

Make this happen

3 steps
  1. Return the literal string ${literal} in the supplied Lua heredoc.

  2. Keep the unmarked <<~LUA opener and matching terminator.

  3. Check the extracted source text.

Read the starter files

main.cococo

team "fulfillment" {
  name = "Fulfillment"
  description = source(lua <<~LUA
    return "wrong"
  LUA
  )
}