Files
fleet-terraform/addons/osquery-perf/variables.tf
T
Jorge Falcon ae8863ce64 Support for internal load balancer and deletion protection, iam policy attachment processing, osquery perf fix, and cloudfront software installers (#105)
# Main terraform

- Modified iam `resource "aws_iam_role_policy_attachment" "extras"` from
`for_each` to `count`, which allows terraform to apply even if roles are
not yet created. In cases where role is not yet created, a second
terraform apply is required for the resource to attach the policy.
- Modified iam `resource "aws_iam_role_policy_attachment"
"execution_extras"`, which allows terraform to apply even if roles are
not yet created. In cases where role is not yet created, a second
terraform apply is required for the resource to attach the policy.
- Added support for internal load balancers to be provisioned.
- Added support for toggling deletion protection on and off on the load
balancer resource.

# Example Module

- Updated example module with changes alb changes.

# Module: Cloudfront Software Installers

- Added a count & tertiary to cloudfront software installer kms key
policy, as it's fed in as an input. In cases where the key had not yet
been created, apply would fail.
- Modified `variable "s3_kms_key_id"` to allow default value `null`

# Module: Logging Destination Firehose

- Added prefix variable to support use-cases where multiple environments
are deployed in the same account

# Module: Osquery Perf

- Added dependency on
`data.aws_secretsmanager_secret_version.enroll_secret` to fix race
condition.
2025-09-19 16:16:22 -04:00

66 lines
1.1 KiB
Terraform

variable "customer_prefix" {
type = string
description = "customer prefix to use to namespace all resources"
default = "fleet"
}
variable "ecs_cluster" {
type = string
}
variable "ecs_execution_iam_role_arn" {
type = string
}
variable "ecs_iam_role_arn" {
type = string
}
variable "extra_flags" {
type = list(string)
default = []
}
variable "loadtest_containers" {
type = number
default = 1
}
variable "logging_options" {
type = object({
awslogs-group = string
awslogs-region = string
awslogs-stream-prefix = string
})
}
variable "osquery_perf_image" {
type = string
}
variable "security_groups" {
type = list(string)
nullable = false
}
variable "server_url" {
type = string
}
variable "subnets" {
type = list(string)
nullable = false
}
variable "enroll_secret" {
type = string
description = "Value of the enroll secret to be created, if enroll_secret_arn is not passed in"
default = null
}
variable "enroll_secret_arn" {
type = string
description = "ARN of the AWS Secret Version containing the enroll secret"
default = null
}