Skip to content

Commit

Permalink
docs: add lambda invoke instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
patheard committed Oct 17, 2024
1 parent 8730e7b commit d5cffee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lambda-code/load-testing/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d5cffee

Please sign in to comment.