Running Locust distributed with Terraform/AWS

Here’s one way to provisioning Locust using Infrastructure as Code/IaC.

For this we use a Terraform module that provisions 1 leader and “n” worker nodes. This implementation uses AWS and EC2, but you may be able to modify it for other cloud providers.

  1. Install terraform

  2. Follow the README

  3. Further reading: Underlying Terraform module