terraform_clickhouse

所属分类:数据库系统
开发工具:HCL
文件大小:0KB
下载次数:0
上传日期:2024-02-05 19:51:45
上 传 者sh-1993
说明:  地形音乐厅
(terraform clickhouse)

文件列表:
.terraform.lock.hcl
Caddyfile.tpl
clickhouse-config.xml.tpl
data_transfer.tpl
docker-compose.yml
fail2ban-clickhouse.conf
fail2ban-jail.local
main.tf
provider.tf
terraform.tfvars.example

# How to start the project ## Create your env file ```bash cp terraform.tfvars.example terraform.tfvars ``` Then fill the `terraform.tfvars` file with your values ## Install terraform ### Linux ```bash 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 ``` ### MacOS ```bash brew install terraform ``` ## Init terraform ```bash terraform init ``` ## Create terraform plan ```bash terraform plan ``` ## Apply terraform plan ```bash terraform apply ``` Note the host in the output ## Destroy terraform plan ```bash terraform destroy ``` ## Read clickhouse password ```bash terraform output -json clickhouse_password ``` # How to connect to clickhouse Connection string: `jdbc:clickhouse://:9000/default?password=`

近期下载者

相关文件


收藏者