fleet/infrastructure/loadtesting/terraform/infra/variables.tf

68 lines
1.7 KiB
Terraform
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
variable "tag" {
description = "The tag to deploy. This would be the same as the branch name"
default = "v4.76.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
}
variable "fleet_task_count" {
description = "The total number (max) that ECS can scale Fleet containers up to"
type = number
default = 5
validation {
condition = var.fleet_task_count >= 0
error_message = "var.fleet_task_count must be greater than or equal to 0."
}
}
variable "fleet_task_memory" {
description = "The memory configuration for Fleet containers"
type = number
default = 4096
}
variable "fleet_task_cpu" {
description = "The CPU configuration for Fleet containers"
type = number
default = 512
}
variable "database_instance_size" {
description = "The instance size for Aurora database instances"
type = string
default = "db.t4g.medium"
}
variable "database_instance_count" {
description = "The number of Aurora database instances"
type = number
default = 2
validation {
condition = var.database_instance_count >= 1
error_message = "var.database_instance_count must be greater than or equal to 1."
}
}
variable "redis_instance_size" {
description = "The instance size for Elasticache nodes"
type = string
default = "cache.t4g.micro"
}
variable "redis_instance_count" {
description = "The number of Elasticache nodes"
type = number
default = 3
validation {
condition = var.redis_instance_count >= 3
error_message = "var.redis_instance_count must be greater than or equal to 3."
}
}
variable "enable_otel" {
description = "Enable OpenTelemetry tracing with SigNoz instead of Elastic APM"
type = bool
default = false
}