fleet/infrastructure/loadtesting/terraform/osquery_perf/README.md

198 lines
8.5 KiB
Markdown
Raw Normal View History

Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
# Deploy osquery perf to a Loadtest environment
# Before we begin
Although deployments through the github action should be prioritized, for manual deployments you will need.
- [A loadtest environment](../infra/README.md)
- Terraform v1.10.2
- Docker
- Go
# Deploy with Github Actions
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
1. [Navigate to the github action](https://github.com/fleetdm/fleet/actions/workflows/loadtest-osquery-perf.yml)
2. On the top right corner, select the `Run Workflow` dropdown.
3. Fill out the details for the deployment.
> Note: For mdm testing, where a SCEP CHALLENGE secret is required, you will need to fetch the details from the database [using this script](https://github.com/fleetdm/fleet/blob/main/tools/mdm/assets/main.go) and passing it in as an `extra_flag` when triggering an osquery\_perf deployment.
>
> Requires:
> - VPN connection
> - Database access
Example:
```
["--mdm_scep_challenge", "<value>"]
```
Additional parameters can be passed in (and not limited to):
```
["--logger_tls_period", "120s", "--orbit_prob", "0.0", "--http_message_signature_prob", "0.0", "--mdm_prob", "1.0", "--os_templates", "<value>", "--mdm_scep_challenge", "<value>"]
```
> **IMPORTANT**: osquery\_perf needs to be destroyed before the infrastructure
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
4. After all details have been filled out, you will hit the green `Run Workflow` button, directly under the inputs. For `terraform_action` select `Plan`, `Apply`, or `Destroy`.
- `Plan` will show you the results of a dry-run
- `Apply` will deploy changes to the environment
- `Destroy` will destroy your environment
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
# Deploy osquery perf manually
1. Clone the repository
2. Initialize terraform
```sh
terraform init
```
3. Create a new the terraform workspace or select an existing workspace for your environment. The terraform workspace will be used in different area's of Terraform to drive uniqueness and access to the environment.
> Note: The workspace from the infrastructure deployment will not be carried over to this deployment. A new or existing workspace, specifically for osquery perf must be used.
>
> Your workspace name must match the workspace name that was used for the infrastructure deployment. Failure to use a matching workspace name can lead to deployments in another environment.
```sh
terraform workspace new <workspace_name>
```
or, if your workspace already exists
```sh
terraform workspace list
terraform workspace select <workspace_name>
```
4. Ensure that your new or existing workspace is in use.
```sh
terraform workspace show
```
5. Deploy the environment (will also trigger migrations automatically)
> Note: Terraform will prompt you for confirmation to trigger the deployment. If everything looks ok, submitting `yes` will trigger the deployment.
```sh
terraform apply -var=git_tag_branch=fleet-v4.76.0
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
```
or, you can add the additional supported terraform variables, to overwrite the default values. You can choose which ones are included/overwritten. If a variable is not defined, the default value configured in [./variables.tf](variables.tf) is used.
> Note: For mdm testing, where a SCEP CHALLENGE secret is required, you will need to fetch the details from the database [using this script](https://github.com/fleetdm/fleet/blob/main/tools/mdm/assets/main.go) and passing it in as an `extra_flag` when triggering an osquery\_perf deployment.
>
> Requires:
> - VPN connection
> - Database access
Example with the SCEP CHALLENGE secret as an extra\_flag:
```sh
terraform apply -var=git_tag_branch=fleet-v4.76.0 -var=extra_flags=["--mdm_scep_challenge", "<value>"]
```
Example with all available variables.
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
```sh
terraform apply -var=git_tag_branch=fleet-v4.76.0 -var=loadtest_containers=20 -var=extra_flags=["--orbit_prob", "0.0"]
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
```
6. If you'd like to deploy osquery\_perf tasks in batches, you can now run the original `enroll.sh` script, from the osquery\_perf directory. The script will deploy in batches of 8, every 60 seconds, so it's recommended to set your starting index and max number of osquery perf containers as a multiple of 8.
```sh
./enroll.sh <branch_or_tag_name> <starting index> <max number of osquery_perf containers> <sleep_time>
```
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
# Destroy osquery perf manually
> **IMPORTANT**: osquery\_perf needs to be destroyed before the infrastructure
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
1. Clone the repository (if not already cloned)
2. Initialize terraform
```sh
terraform init
```
3. Select your workspace
```sh
terraform workspace list
terraform workspace select <workspace_name>
```
3. Destroy the environment
```sh
terraform destroy
```
# Delete the workspace
Once all resources have been removed from the terraform workspace, remove the terraform workspace.
```sh
terraform workspace delete <workspace_name>
```
## Requirements
| Name | Version |
|------|---------|
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.68.0 |
| <a name="requirement_docker"></a> [docker](#requirement\_docker) | ~> 3.6.0 |
| <a name="requirement_git"></a> [git](#requirement\_git) | 2025.10.10 |
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
## Providers
| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 6.23.0 |
| <a name="provider_docker"></a> [docker](#provider\_docker) | 3.6.2 |
| <a name="provider_git"></a> [git](#provider\_git) | 2025.10.10 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.7.2 |
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
| <a name="provider_terraform"></a> [terraform](#provider\_terraform) | n/a |
## Modules
| Name | Source | Version |
|------|--------|---------|
| <a name="module_osquery_perf"></a> [osquery\_perf](#module\_osquery\_perf) | github.com/fleetdm/fleet-terraform//addons/osquery-perf | tf-mod-addon-osquery-perf-v1.2.1 |
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
## Resources
| Name | Type |
|------|------|
| [aws_ecr_repository.loadtest](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository) | resource |
| [aws_kms_key.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key) | resource |
| [docker_image.loadtest](https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/image) | resource |
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
| [docker_registry_image.loadtest](https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/registry_image) | resource |
| [random_pet.rand_image_key](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) | resource |
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_ecr_authorization_token.token](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ecr_authorization_token) | data source |
| [aws_ecr_repository.fleet](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ecr_repository) | data source |
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |
| [git_repository.tf](https://registry.terraform.io/providers/metio/git/2025.10.10/docs/data-sources/repository) | data source |
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
| [terraform_remote_state.infra](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/data-sources/remote_state) | data source |
| [terraform_remote_state.shared](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/data-sources/remote_state) | data source |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_extra_flags"></a> [extra\_flags](#input\_extra\_flags) | Comma delimited list (string) for passing extra flags to osquery-perf containers | `list(string)` | <pre>[<br/> "--orbit_prob",<br/> "0.0"<br/>]</pre> | no |
| <a name="input_git_tag_branch"></a> [git\_tag\_branch](#input\_git\_tag\_branch) | The tag or git branch to use to build loadtest containers. | `string` | n/a | yes |
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
| <a name="input_loadtest_containers"></a> [loadtest\_containers](#input\_loadtest\_containers) | Number of loadtest containers to deploy | `number` | `1` | no |
| <a name="input_task_size"></a> [task\_size](#input\_task\_size) | n/a | <pre>object({<br/> cpu = optional(number, 256)<br/> memory = optional(number, 1024)<br/> })</pre> | <pre>{<br/> "cpu": 256,<br/> "memory": 1024<br/>}</pre> | no |
Loadtesting IAC updates (#32629) # Github Actions (New) - New workflow to deploy/destroy loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of loadtest infrastructure - tag - fleet_task_count - fleet_task_memory - fleet_task_cpu - fleet_database_instance_size - fleet_database_instance_count - fleet_redis_instance_size - fleet_redis_instance_count - terraform_workspace - terraform_action - New workflow to deploy/destroy osquery-perf to loadtest infrastructure with one-click (Needs to be tested) - Common inputs drive configuration and deployment of osquery-perf resources - tag - git_branch - loadtest_containers - extra_flags - terraform_workspace - terraform_action - New workflow to deploy shared loadtest resources with one-click (Needs to be tested) # Loadtest Infrastructure (New) - New directory (`infrastructure/loadtesting/terraform/infra`) for one-click deployment - Loadtest environment updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/blob/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/infra/README.md) to reflect new steps # Osquery-perf deployment (New) - New directory (`infrastructure/loadtesting/terraform/osquery-perf`) for the deployment of osquery-perf - osquery-perf updated to use [fleet-terraform modules](https://github.com/fleetdm/fleet-terraform) - [Deployment documentation updated](https://github.com/fleetdm/fleet/tree/0c254bca4018bcf2421ae37f652f9191fb028adf/infrastructure/loadtesting/terraform/osquery_perf) to reflect new steps
2025-10-08 19:31:37 +00:00
## Outputs
| Name | Description |
|------|-------------|
| <a name="output_osquery_perf"></a> [osquery\_perf](#output\_osquery\_perf) | n/a |