concept
Encoding, time and filesystem boundaries
Process files, encodings, timestamps and sensitivity safely.
Formal Syntax & Structure
terraform syntaxterraform
Encoding, time and filesystem boundariesWorking Example
Example Snippetterraform
locals { names = sort(tolist(fileset(path.module, "inputs/*.json"))) records = { for n in local.names : n => jsondecode(file("${path.module}/${n}")) } encoded = filebase64("${path.module}/inputs/catalog.json") message = templatefile("${path.module}/label.tftpl", { service = "catalog" })}output "records" { value = local.records}output "message" { value = local.message}