From d5cffeec0e84c720b405f6b511b2f047ff49fa27 Mon Sep 17 00:00:00 2001 From: Pat Heard Date: Thu, 17 Oct 2024 12:50:43 +0000 Subject: [PATCH] docs: add lambda invoke instructions --- lambda-code/load-testing/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lambda-code/load-testing/README.md b/lambda-code/load-testing/README.md index d21e369b5..07b403fe1 100644 --- a/lambda-code/load-testing/README.md +++ b/lambda-code/load-testing/README.md @@ -1,6 +1,18 @@ # Load testing Locust load tests that can be run in a Lambda function or locally. +## Lambda +Invoke the function using an event that looks like so: +```json +{ + "locustfile": "./tests/locust_test_file.py", + "host": "https://forms-staging.cdssandbox.xyz", + "num_users": "5", + "spawn_rate": "1", + "run_time": "5m" +} +``` + ## Locally You will need AWS access credentials for the target environment, along with the following environment variables set: ```sh