cp terraform.tfvars.example terraform.tfvars
Then fill the terraform.tfvars
file with your values
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" -y
sudo apt-get update && sudo apt-get install terraform -y
brew install terraform
terraform init
terraform plan
terraform apply
Note the host in the output
terraform destroy
terraform output -json clickhouse_password
Connection string: jdbc:clickhouse://<clickhouse_host>:9000/default?password=<clickhouse_password>