Running Locust distributed with Terraform/AWS


This is broken at the moment. See for a possible workaround.

Here’s one way to provision 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