To build the packer image you can do as follows
packer init aws-debian.pkr.hcl
packer build aws-debian.pkr.hcl
To build for production you must specify the region
packer init aws-debian.pkr.hcl
packer build -var 'region=eu-west-1' aws-debian.pkr.hcl
In the user-data of the instance you must set the following env vars and invoke /usr/sbin/genconf.sh
CLICKHOUSE_SERVER
CLICKHOUSE_USER
CLICKHOUSE_PASSWORD
CLICKHOUSE_DB
CLICKHOUSE_PROTO
CLICKHOUSE_PORT
QRYN_USER
QRYN_PASSWORD
Default login: admin / admin
Username: admin