Deploy Multi-Regional BenchChain Clusters On Digital Ocean
With Terraform
This Terraform deployment configuration automatically sets up DigitalOcean droplets and has been modified to also install or mass-deploy BenchChain's TestNet.
- Launch a server at Digital Ocean or use your local development environment. Both work fine.
- Create a DigitalOcean API token at https://cloud.digitalocean.com/settings/api/tokens.
- Make sure API settings are set to Read/Write
- Create SSH keys
- Install Terraform via https://www.terraform.io
- Clone this repository:
git clone https://github.com/benchlab/benchchain-terraform && cd benchchain-terraform
- Follow
BenchChain Terraform Build
instructions below.
export API="your-digital-ocean-api-token"
export PUBLIC_KEY="$HOME/.ssh/id_rsa.pub"
terraform init
terraform apply -var APITOKEN="$API" -var PUBLICKEY="$KEY"
At the end you will get a complete list of BenchChain IP addresses that belong to all the new droplets that were launched via this deployment script.
Run the command below:
terraform destroy