Error - invalid HCL: At 1:8: illegal char while deploying cluster

Dears,

I’m new to memsql. I have succeed to install memsql using cluster-in-a-box parameters. But now I would like to create a cluster over two hosts. I have generated the Yaml file using UI setup but when I try to deploy the cluster I have the following error invalid HCL: At 1:8: illegal char.

here my configuration file:
license: XXXXXXXXX
high_availability: true
root_password: my_password
optimize: true
memsql_server_file_path: /data/singlestore/packages/singlestoredb-server-7.5.7-b31088a4e0.x86_64.tar.gz
hosts:
- hostname: host1
nodes:
- role: Master
config:
port: 3306
localhost: true
- hostname: host2
nodes:
- role: Leaf
config:
port: 3306
- role: Leaf
config:
port: 3307
localhost: false
ssh:
host: host2
port: 22
user: root
private_key: /root/.ssh/id_rsa

Could you tell me what is wrong in my configuration? It seems that the character at position 8 is ‘:’

Regards
Emmanuel

I don’t know what the problem is.

However, consider just using the command line to install your system, not a YAML file. Use sdb-deploy and sdb-admin (after installing toolbox). That might sidestep this problem.

Thank you for your help. Finally, I did it using the cluster in a box configuration. But using yaml still not working.