CockroachDB Videos
← Back to all videos

How to install #CockroachDB Serverless via #Terraform

2023-10-18

CockroachDB Cloud Demos & Tutorials

Description

Need help installing CockroachDB Serverless with Terraform? You can provision CockroachDB Serverless clusters and cluster resources by using the CockroachDB Cloud Terraform provider in your Terraform configuration files. In under three minutes, our Technical Evangelist Rob Reid will walk through everything you need to know. Chapters: 00:00 Creating a service account / Giving Terraform access to your cloud environment 0:36 Exporting COCKROACH_API_KEY 0:45 Close up with the code / sourcing environment variables 1:32 Creating the cluster (terraform apply) 1:53 Creating random passwords (terraform output –json passwords | jq) 2:04 Copying the connection string to a #Golang application 2:25 Cleaning up (terraform destroy) Want to know more? Here are a few excellent resources: ✔️ [Cockroach Labs] How to provision a CockroachDB Cloud Cluster with Terraform: https://www.cockroachlabs.com/docs/cockroachcloud/provision-a-cluster-with-terraform ✔️ [Terraform] CockroachDB Terraform provider: https://registry.terraform.io/providers/cockroachdb/cockroach/latest ✔️ [github] CockroachDB Terraform provider: https://github.com/cockroachdb/terraform-provider-cockroach #distributedsql #database #iac #infrastructureascode