CockroachDB Clusters via AWS CloudFormation
This repo contains an AWS CloudFormation template for quickly spinning up multi-node CockroachDB clusters for development/test environments.
The included template allows users to select the number of nodes, the cluster version, the EC2 instance type, and the amount of storage available to each node. For a small amount of security, the CockroachDB cluster is deployed in a virtual private cloud that restricts access to specific IP address ranges.
While the region in which the CloudFormation stack runs is configurable, the CockroachDB cluster is deployed in a single availability zone within that region. Since this configuration would not survive an availability zone failure, we would not recommend it for production deployments.
Deploying a cluster
Click here to deploy CockroachDB using this template.
If you edit this template, you can run tests using TaskCat
curl -s https://raw.githubusercontent.com/aws-quickstart/taskcat/master/installer/docker-install-master| sudo python -E
Note: (If you do not have root privileges Taskcat will install in the current directory)
To run tests
- Edit the json files in the
cidirectory so the
KeyNamevalue references your ec2 key.
config.ymland double check the regions in which the tests will run. Make sure a key with your provided name is in those regions (or edit the region config to point to regions that do contain your specified key).
taskcat -c cockroachdb-cloudformation/ci/config.yml -p.
- The output will be in the
taskcat_outputsdirectory. Simply open the
index.htmlfile to see the results.
This template was originally forked from Heptio's Kuberenets AWS Quick Start