Files
fleet-terraform/addons/cloudfront-software-installers/variables.tf
T
Jorge Falcon 4ce91146b4 Fix FLEET_S3_SOFTWARE_INSTALLERS_CLOUDFRONT_URL_SIGNING_PUBLIC_KEY_ID value and use regional s3 bucket endpoint (#189)
- Fixes
`FLEET_S3_SOFTWARE_INSTALLERS_CLOUDFRONT_URL_SIGNING_PUBLIC_KEY_ID`
where the value is currently set to `var.key_group_id` instead of the
required `public_key_id`.
- Updates the cloudfront s3 origin to use the the regional s3 bucket
endpoint over the legacy global s3 bucket endpoint.
- Added variable validations to detect when `key_group_id` is added
without `public_key_id`, vice versa.
2026-03-09 17:15:08 -04:00

67 lines
1.5 KiB
Terraform

variable "customer" {
description = "Customer name for the cloudfront instance"
type = string
default = "fleet"
}
variable "key_group_id" {
description = "Cloudfront key group id"
type = string
default = null
}
variable "public_key_id" {
description = "Cloudfront public key id. Required when passing in a key_group_id"
type = string
default = null
validation {
condition = var.key_group_id == null || var.public_key_id != null
error_message = "key_group_id provided. Please add a value for public_key_id."
}
validation {
condition = var.key_group_id != null || var.public_key_id == null
error_message = "public_key_id provided. Please add a value for key_group_id."
}
}
variable "private_key" {
description = "Private key used for signed URLs"
type = string
}
variable "public_key" {
description = "Public key used for signed URLs"
type = string
}
variable "s3_bucket" {
description = "Name of the S3 bucket that Cloudfront will point to"
type = string
}
variable "s3_kms_key_id" {
description = "KMS key id used to encrypt the s3 bucket"
type = string
default = null
}
variable "enable_logging" {
description = "Enable optional logging to s3"
type = bool
default = false
}
variable "logging_s3_bucket" {
description = "s3 bucket to log to"
type = string
default = null
}
variable "logging_s3_prefix" {
description = "logging s3 bucket prefix"
type = string
default = "cloudfront"
}