The repository contains Terraform config and scripts required to run the Consul Global Scale Benckmark for HashiCorp Consul on Amazon Web Services.
- HashiCorp Terraform v0.13.5
There are two Terraform projects that help setup the experiment.
-
infrastructure - This directory contains the Terraform configuration for setting up the infrastructure for the experiment.
-
services - This directory contains the Terraform configuration for the services that run on the Kubernetes and Nomad clusters.
The benchmark uses Terraform to initialize infrastructure.
- Terraform remote state backend.
Note: Any of the Terraform remote backends can be used for this project.
Using Terraform Cloud backend.
- Follow this tutorial to sign up.
- Edit
infrastructure/remote.tf
file and add Terraform Cloud organization name.terraform { backend "remote" { organization = "YOUR_TERRAFORM_CLOUD_ORGANIZATION_NAME_HERE" workspaces { name = "consul-scalability-challenge-infrastructure" } } }
cd infrastructure
Initialize Terraform
terraform init
Run Terraform apply
terraform apply -var="key_name=consul-global-scale-challenge" -var="datadog_api_key=${DATADOG_API_KEY}" -parallelism="100"
More documentation coming soon!