https://github.com/achannarasappa/locust-aws-terraform
Terraform module to configure the base resources needed to run Locust on AWS
https://github.com/achannarasappa/locust-aws-terraform
Last synced: 7 months ago
JSON representation
Terraform module to configure the base resources needed to run Locust on AWS
- Host: GitHub
- URL: https://github.com/achannarasappa/locust-aws-terraform
- Owner: achannarasappa
- License: mit
- Created: 2019-11-02T17:48:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-09T21:33:02.000Z (over 5 years ago)
- Last Synced: 2025-01-19T12:50:21.083Z (9 months ago)
- Language: HCL
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# locust-aws-terraform
Terraform module defining the base resources needed to run Locust on AWS
## Usage
```hcl
module "locust" {
source = "github.com/achannarasappa/locust-aws-terraform"
private_subnet_ids = ["subnet-015dff3947245c2e3"]
public_subnet_ids = ["subnet-0766addedaf8eada0"]
vpc_id = "vpc-0342797f487e2b072"
}
```## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| vpc_id | ID of the VPC to create resources in | string | | yes |
| private_subnet_ids | List of IDs of private subnets in the VPC | list(string) | | yes |
| public_subnet_ids | List of IDs of public subnets in the VPC | list(string) | | yes |
| chrome_port | Port exposed by Chrome for websocket connections from Locust | string | `"3000"` | yes |## Outputs
| Name | Description |
|------|-------------|
| redis_hostname | Hostname for the Redis instance containing the Locust queue |
| chrome_hostname | Hostname for the Chrome instance used to execute HTTP requests |
| security_group_id | Security group for resources related to Locust |
| iam_role_arn | AWS ARN with permissions for an AWS Lambda to connect to Chrome and Redis and run a Locust in a AWS Lambda |## Examples
Refer to examples directory for how to use this module