Skip to content

Repo with terraform scripts to prepare GCP infrastructure for Clickhouse

Notifications You must be signed in to change notification settings

NikiforovG/clickhouse-terraform-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clickhouse-terraform-gcp

This repository contains Terraform scripts for automating the infrastructure deployment for ClickHouse on the Google Cloud Platform (GCP).

Features

  • Automates the creation of a Virtual Machine (VM) on the Google Compute Engine (GCE).
  • Sets up an additional persistent SSD for data storage.
  • Configures the network settings to allow traffic through the ClickHouse port.
  • Assigns a static IP to the VM for consistent access.

Prerequisites

Usage

  1. Clone the repository to your local system.

    git clone [email protected]:NikiforovG/clickhouse-terraform-gcp.git
    
  2. Move to the directory containing the Terraform scripts.

    cd clickhouse-terraform-gcp
    
  3. Initialize your Terraform workspace, which will download the provider.

    terraform init
    
  4. Now, validate your configuration. If it's valid, the command won't return any errors.

    From this moment make sure you have GOOGLE_CREDENTIALS environment variable defined with your service account json key.

    terraform validate
    
  5. Now, let's plan our deployment.

    terraform plan
    
  6. Once everything is ready, apply your configuration.

    terraform apply
    

Acknowledgments

About

Repo with terraform scripts to prepare GCP infrastructure for Clickhouse

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published