github.com/hashicorp/packer@v1.14.3/command/test-fixtures/hcl2_upgrade/complete-variables-with-template-engine/input.json (about)

     1  {
     2      "variables": {
     3          "build_timestamp": "{{timestamp}}",
     4          "temp_directory": "{{template_dir}}",
     5          "uuid": "{{uuid}}",
     6          "env_test": "{{env `TEST_ENV`}}",
     7          "lower": "{{lower `HELLO`}}",
     8          "upper": "{{upper `hello`}}",
     9          "pwd": "{{pwd}}",
    10          "replace": "{{replace `b` `c` 2 `ababa`}}",
    11          "replace_all": "{{replace_all `b` `c` `ababa`}}",
    12          "split": "{{split `aba` `b` 1}}",
    13          "iso_datetime": "{{isotime `2006-01-02T15:04:05Z07:00`}}"
    14      },
    15      "builders": [{
    16          "type": "null",
    17          "communicator": "none"
    18      }],
    19      "provisioners": [{
    20          "type": "shell-local",
    21          "inline": [
    22              "echo {{ user `build_timestamp`}}",
    23              "echo {{ user `temp_directory`}}",
    24              "echo {{ user `iso_datetime`}}",
    25              "echo {{ user `uuid`}}",
    26              "echo {{ user `env_test`}}",
    27              "echo {{ user `lower`}}",
    28              "echo {{ user `upper`}}",
    29              "echo {{ user `pwd`}}",
    30              "echo {{ user `replace`}}",
    31              "echo {{ user `replace_all`}}",
    32              "echo {{ user `split`}}"
    33          ]
    34      }]
    35  }